mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 04:05:06 +00:00
Bring back another memleak fix
This commit is contained in:
parent
f7689564a6
commit
351436fb54
@ -314,9 +314,11 @@ static int filter(RParse *p, RFlag *f, char *data, char *str, int len, bool big_
|
||||
break;
|
||||
}
|
||||
memmove (ptr_left, ptr_esc, copied_len);
|
||||
sprintf (ptr_left + copied_len, "%s%s",
|
||||
char *rest = r_str_newf ("%s%s",
|
||||
ansi_found && ptr_right - ptr_end + 1 >= 4 ? "\x1b[0m" : "",
|
||||
ptr_right + 1);
|
||||
strcpy (ptr_left + copied_len, rest);
|
||||
free (rest);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user