diff options
author | cloudygoose <[email protected]> | 2015-07-02 16:00:59 +0800 |
---|---|---|
committer | cloudygoose <[email protected]> | 2015-07-02 16:00:59 +0800 |
commit | fabb15fec6e9f4ddd20fe46234201164d3aa8dbb (patch) | |
tree | fd61d54b2930a1abe27b35e00841115066372eed | |
parent | bc17acd4c5f98df4e00b7c85e479cbff2d5da5a7 (diff) |
bug fix: Matrix space did not free
-rw-r--r-- | nerv/lib/matrix/generic/matrix.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nerv/lib/matrix/generic/matrix.c b/nerv/lib/matrix/generic/matrix.c index 5dbad48..e4afa37 100644 --- a/nerv/lib/matrix/generic/matrix.c +++ b/nerv/lib/matrix/generic/matrix.c @@ -12,7 +12,10 @@ static void nerv_matrix_(data_free)(Matrix *self, Status *status) { free(self->data_ref); free(self); } - else NERV_SET_STATUS(status, NERV_NORMAL, 0); + else { + free(self); + NERV_SET_STATUS(status, NERV_NORMAL, 0); + } } static void nerv_matrix_(data_retain)(Matrix *self) { |