mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
Fix Leak in r_cons_pop() (#10322)
This commit is contained in:
parent
35f6c776e8
commit
6fa6ce3efb
@ -541,12 +541,8 @@ R_API void r_cons_pop() {
|
||||
memcpy (I.buffer, data->buf, data->buf_size);
|
||||
}
|
||||
if (data->grep) {
|
||||
free (I.grep.str);
|
||||
memcpy (&I.grep, data->grep, sizeof (RConsGrep));
|
||||
if (data->grep->str) {
|
||||
char *old = I.grep.str;
|
||||
I.grep.str = strdup (data->grep->str);
|
||||
R_FREE (old);
|
||||
}
|
||||
}
|
||||
cons_stack_free ((void *)data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user