[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 9b1e372 2/2: Match: fixed some memory leaks
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 9b1e372 2/2: Match: fixed some memory leaks |
Date: |
Wed, 15 May 2019 11:07:45 -0400 (EDT) |
branch: master
commit 9b1e37206ba0496b6923a3587b22b884be5777ba
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
Match: fixed some memory leaks
Until now, we weren't freeing some of the allocated spaces at the end of
Match. While doing the debuggings of the previous commits, I notice this.
With this commit, the necessary memory freeing steps have been added.
---
bin/match/ui.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/bin/match/ui.c b/bin/match/ui.c
index ee04c9d..ad97172 100644
--- a/bin/match/ui.c
+++ b/bin/match/ui.c
@@ -945,11 +945,14 @@ ui_free_report(struct matchparams *p, struct timeval *t1)
{
/* Free the allocated arrays: */
free(p->cp.hdu);
+ free(p->aperture);
free(p->out1name);
free(p->out2name);
free(p->cp.output);
gal_data_free(p->ccol1);
gal_data_free(p->ccol2);
+ gal_list_data_free(p->cols1);
+ gal_list_data_free(p->cols2);
gal_list_str_free(p->stdinlines, 1);
/* Print the final message.