diff options
author | Eric Lambert <eric_lambert@xyratex.com> | 2014-06-03 14:14:04 -0700 |
---|---|---|
committer | Eric Lambert <eric_lambert@xyratex.com> | 2014-06-03 14:14:04 -0700 |
commit | a30308b48539c60ffe5bbc5fb0a31f95f8290084 (patch) | |
tree | b177cafcd814fda75a38c72f5fcda0edd9e46b60 /src | |
parent | 596c2f04fe4d5c3ad3b6ed196441909221727aba (diff) | |
download | pyeclib-a30308b48539c60ffe5bbc5fb0a31f95f8290084.tar.gz |
issue-46: fixed some memory leaks, as well as some minor fixes.
Diffstat (limited to 'src')
-rw-r--r-- | src/c/pyeclib_c/pyeclib_c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/c/pyeclib_c/pyeclib_c.c b/src/c/pyeclib_c/pyeclib_c.c index 787d055..a8b7ed3 100644 --- a/src/c/pyeclib_c/pyeclib_c.c +++ b/src/c/pyeclib_c/pyeclib_c.c @@ -2053,7 +2053,8 @@ pyeclib_c_check_metadata(PyObject *self, PyObject *args) for (i = 0; i < m; i++) { parity_sigs[i] = (char *) alloc_aligned_buffer16(PYCC_MAX_SIG_LEN); if (NULL == parity_sigs[i]) { - for (int j = 0; j < i; j++) free(parity_sigs[j]); + int j; + for (j = 0; j < i; j++) free(parity_sigs[j]); goto error; } else { memset(parity_sigs[i], 0, PYCC_MAX_SIG_LEN); |