Fix memleak in rz_bin_file_compute_hashes() (#4364)

This commit is contained in:
pelijah 2024-03-16 13:40:40 +03:00 committed by GitHub
parent 6b20aeff86
commit 2195bbc472
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -410,6 +410,7 @@ RZ_API RZ_OWN RzPVector /*<RzBinFileHash *>*/ *rz_bin_file_compute_hashes(RzBin
if (bin->verbose) {
RZ_LOG_WARN("rz_bin_file_hash: file exceeds bin.hashlimit\n");
}
rz_buf_free(buf);
return NULL;
}
file_hashes = rz_pvector_new((RzPVectorFree)rz_bin_file_hash_free);