interrogate_terminfo: close memory leak on error path

pull/2011/head
nick black 3 years ago
parent 74dba98c68
commit 56636ca57c
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -822,7 +822,7 @@ int interrogate_terminfo(tinfo* ti, int fd, const char* termname, unsigned utf8,
if(cursor_x && cursor_y){
if(*cursor_x >= 0 && *cursor_y >= 0){
if(add_u7_escape(ti, &tablelen, &tableused)){
return -1;
goto err;
}
}
}

Loading…
Cancel
Save