ncplane_at_yx: free intermediate empty ret

pull/1713/head
nick black 3 years ago
parent 1daa011269
commit 7c54fe0f23
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -172,6 +172,7 @@ char* ncplane_at_yx(const ncplane* n, int y, int x, uint16_t* stylemask, uint64_
}
//fprintf(stderr, "GOT [%s]\n", ret);
if(strcmp(ret, "") == 0){
free(ret);
ret = nccell_strdup(n, &n->basecell);
if(ret == NULL){
return NULL;

Loading…
Cancel
Save