mirror of
https://github.com/tmux/tmux.git
synced 2026-03-09 17:30:16 +00:00
Fix memory leak in sixel_parse() on error path, from Renaud Allard in GitHub
issue 4916.
This commit is contained in:
@@ -357,7 +357,7 @@ sixel_parse(const char *buf, size_t len, u_int p2, u_int xpixel, u_int ypixel)
|
||||
return (si);
|
||||
|
||||
bad:
|
||||
free(si);
|
||||
sixel_free(si);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user