Merge pull request #800 from jvoisin/patch-2

Fix a memleak
This commit is contained in:
dso 2014-04-21 17:59:46 -05:00
commit 6fa43d8b51

View File

@ -203,6 +203,7 @@ R_API int r_anal_fcn_var_del_bydelta (RAnal *a, ut64 fna, const char kind, int s
SETKEY("fcn.0x%08"PFMT64x".%c", fna, kind);
v = sdb_itoa (val, delta, 10);
int idx = sdb_array_indexof (DB, key, v, 0);
free (v);
if (idx != -1) {
sdb_array_delete (DB, key, idx, 0);
SETKEY("fcn.0x%08"PFMT64x".%c.%d", fna, kind, delta);