mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 07:00:30 +00:00
Fix leak in canvas.c
This commit is contained in:
parent
f3ef5d5fd2
commit
eb902759d8
@ -483,15 +483,7 @@ R_API int r_cons_canvas_resize(RConsCanvas *c, int w, int h) {
|
||||
c->blen[i] = w;
|
||||
c->bsize[i] = w + 1;
|
||||
if (!newline) {
|
||||
size_t j;
|
||||
for (j = 0; j <= i; j++) {
|
||||
free (c->b[i]);
|
||||
}
|
||||
ht_up_free (c->attrs);
|
||||
free (c->blen);
|
||||
free (c->bsize);
|
||||
free (c->b);
|
||||
free (c);
|
||||
r_cons_canvas_free (c);
|
||||
return false;
|
||||
}
|
||||
c->b[i] = newline;
|
||||
|
Loading…
Reference in New Issue
Block a user