mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
fix tiny memory leak in ncplane_at_cursor_cell()
This commit is contained in:
parent
b9f32cf6b5
commit
0485c6f35d
@ -1276,9 +1276,7 @@ ncplane_at_cursor_cell(struct ncplane* n, cell* c){
|
||||
return -1;
|
||||
}
|
||||
int r = cell_load(n, c, egc);
|
||||
if(r < 0){
|
||||
free(egc);
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user