fix tiny memory leak in ncplane_at_cursor_cell()

This commit is contained in:
nick black 2020-11-24 02:36:41 -05:00
parent b9f32cf6b5
commit 0485c6f35d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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;
}