[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master b4ccc82: Statistics: fixed a double free error
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master b4ccc82: Statistics: fixed a double free error |
Date: |
Wed, 6 Jan 2021 08:36:26 -0500 (EST) |
branch: master
commit b4ccc82eca457fd025fa1203be07ac24401706cb
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Statistics: fixed a double free error
In the previous commit, I had mistakenly freed an array that was already
freed before. This has been corrected now.
---
bin/statistics/ui.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/bin/statistics/ui.c b/bin/statistics/ui.c
index d8ce160..0b2ad5c 100644
--- a/bin/statistics/ui.c
+++ b/bin/statistics/ui.c
@@ -1051,11 +1051,9 @@ ui_preparations(struct statisticsparams *p)
gal_blank_remove(p->input);
gal_blank_remove(p->input->next);
+ gal_data_free(flag);
p->input->next->flag &= ~GAL_DATA_FLAG_HASBLANK ;
p->input->next->flag |= GAL_DATA_FLAG_BLANK_CH ;
-
- gal_data_free(flag1);
- gal_data_free(flag2);
}
else
gal_blank_remove(p->input);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-commits] master b4ccc82: Statistics: fixed a double free error,
Mohammad Akhlaghi <=