diff options
-rw-r--r-- | src/erasurecode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/erasurecode.c b/src/erasurecode.c index 22aa2e8..8272f3e 100644 --- a/src/erasurecode.c +++ b/src/erasurecode.c @@ -341,7 +341,7 @@ int liberasurecode_encode_cleanup(int desc, if (encoded_data) { for (i = 0; i < k; i++) { - free(encoded_data[i]); + free_fragment_buffer(encoded_data[i]); } free(encoded_data); @@ -349,7 +349,7 @@ int liberasurecode_encode_cleanup(int desc, if (encoded_parity) { for (i = 0; i < m; i++) { - free(encoded_parity[i]); + free_fragment_buffer(encoded_parity[i]); } free(encoded_parity); |