Skip to content

Commit

Permalink
code typo (caused memory leak)
Browse files Browse the repository at this point in the history
  • Loading branch information
nick87720z committed Mar 20, 2022
1 parent afc6e8d commit 07e0a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/execplugin/execplugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ void destroy_execp(void *obj)
free(backend->text);
free(backend->icon_path);
free(backend->command);
if (backend->tooltip < backend->buf_stderr &&
if (backend->tooltip < backend->buf_stderr ||
backend->tooltip - backend->buf_stderr >= backend->buf_stdout_capacity)
{
free( backend->tooltip);
Expand Down

0 comments on commit 07e0a7b

Please sign in to comment.