rz-test: Make sure to correctly free path_left ht (#1372)

This commit is contained in:
Riccardo Schirone 2021-07-28 19:14:25 +02:00 committed by GitHub
parent 7a7ca18e20
commit 6041ae6bb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,6 +76,7 @@ static int help(bool verbose) {
}
static void path_left_free_kv(HtPPKv *kv) {
free(kv->key);
free(kv->value);
}
@ -510,6 +511,7 @@ coast:
rz_test_test_database_free(state.db);
rz_th_lock_free(state.lock);
rz_th_cond_free(state.cond);
ht_pp_free(state.path_left);
beach:
free(output_file);
free(rizin_cmd);