gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 420ffda 2/2: MakeNoise: free the GSL RNG struc


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 420ffda 2/2: MakeNoise: free the GSL RNG structure
Date: Sat, 17 Aug 2019 17:57:29 -0400 (EDT)

branch: master
commit 420ffdadea0b65df8290fd2ab1d7bb48bd51e1c9
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    MakeNoise: free the GSL RNG structure
    
    Until now, we weren't freeing GSL's RNG structure in MakeNoise! A statement
    to free it has now been added.
---
 bin/mknoise/ui.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bin/mknoise/ui.c b/bin/mknoise/ui.c
index 70c847b..b1f775d 100644
--- a/bin/mknoise/ui.c
+++ b/bin/mknoise/ui.c
@@ -438,6 +438,7 @@ ui_free_report(struct mknoiseparams *p, struct timeval *t1)
   /* Free the allocated arrays: */
   free(p->cp.hdu);
   free(p->cp.output);
+  gsl_rng_free(p->rng);
   gal_data_free(p->input);
 
   /* Print the final message. */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]