Fix memleak in rz_bin_file_compute_hashes() (#4364)
This commit is contained in:
parent
6b20aeff86
commit
2195bbc472
1 changed files with 1 additions and 0 deletions
|
|
@ -410,6 +410,7 @@ RZ_API RZ_OWN RzPVector /*<RzBinFileHash *>*/ *rz_bin_file_compute_hashes(RzBin
|
||||||
if (bin->verbose) {
|
if (bin->verbose) {
|
||||||
RZ_LOG_WARN("rz_bin_file_hash: file exceeds bin.hashlimit\n");
|
RZ_LOG_WARN("rz_bin_file_hash: file exceeds bin.hashlimit\n");
|
||||||
}
|
}
|
||||||
|
rz_buf_free(buf);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
file_hashes = rz_pvector_new((RzPVectorFree)rz_bin_file_hash_free);
|
file_hashes = rz_pvector_new((RzPVectorFree)rz_bin_file_hash_free);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue