console: free tab ruler on init-failure
When console initialization fails, we need to free the tab-ruler if it was allocated. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
6ae5ddc0e7
commit
79a07358a9
@ -415,6 +415,7 @@ err_free:
|
||||
for (i = 0; i < con->line_num; ++i)
|
||||
line_free(con->lines[i]);
|
||||
free(con->lines);
|
||||
free(con->tab_ruler);
|
||||
free(con);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user