Skip to content

Commit ddeeecd

Browse files
authored
Merge pull request ceph#62480 from tchaikov/erasure-code-free
erasure-code: use new/delete to alloc/free coefficients array Reviewed-by: Alex Ainscow <[email protected]>
2 parents 4eec7e5 + e8f02e8 commit ddeeecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/erasure-code/isa/ErasureCodeIsaTableCache.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ ErasureCodeIsaTableCache::setEncodingTable(int matrix, int k, int m, unsigned ch
192192
if (*ec_out_table) {
193193
// somebody might have deposited this table in the meanwhile, so clean
194194
// the input table and return the stored one
195-
free (ec_in_table);
195+
delete[] ec_in_table;
196196
return *ec_out_table;
197197
} else {
198198
// we store the provided input table and return this one

0 commit comments

Comments
 (0)