mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-24 06:48:46 +00:00
Fix possible leak of list after each loop iteration ##util
This commit is contained in:
parent
802eb32aa2
commit
2853a125e4
@ -1092,6 +1092,7 @@ R_API bool r_table_query(RTable *t, const char *q) {
|
||||
const char *operation = r_list_get_n (q, 1);
|
||||
const char *operand = r_list_get_n (q, 2);
|
||||
if (__table_special (t, columnName)) {
|
||||
r_list_free (q);
|
||||
continue;
|
||||
}
|
||||
int col = r_table_column_nth (t, columnName);
|
||||
@ -1105,6 +1106,7 @@ R_API bool r_table_query(RTable *t, const char *q) {
|
||||
}
|
||||
}
|
||||
if (!operation) {
|
||||
r_list_free (q);
|
||||
break;
|
||||
}
|
||||
if (!strcmp (operation, "sort")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user