[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 7b9389c: Collapse by minimum/maximum freeing p
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 7b9389c: Collapse by minimum/maximum freeing possible number dataset |
Date: |
Fri, 27 Jul 2018 19:11:39 -0400 (EDT) |
branch: master
commit 7b9389c0f83be6febf013a8ef5361e15f3e2f30d
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
Collapse by minimum/maximum freeing possible number dataset
When doing the collapsing of a dataset, if it has blank pixels, its
necessary to keep counts of how many pixels have gone into each collapsed
element. But we weren't freeing this array when it was created. With this
commit, that is done.
---
lib/dimension.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/dimension.c b/lib/dimension.c
index 548b2c2..a8740df 100644
--- a/lib/dimension.c
+++ b/lib/dimension.c
@@ -778,7 +778,8 @@ gal_dimension_collapse_minmax(gal_data_t *in, size_t c_dim,
int max1_min0)
`in->wcs'. */
gal_wcs_remove_dimension(minmax->wcs, in->ndim-c_dim);
- /* Return. */
+ /* Clean up and return. */
if(wht!=weight) gal_data_free(wht);
+ if(num) gal_data_free(num);
return minmax;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-commits] master 7b9389c: Collapse by minimum/maximum freeing possible number dataset,
Mohammad Akhlaghi <=