Skip to content
Snippets Groups Projects
Commit d0721373 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Fix memory leak in feh_edit_inplace_lossless

parent 1bd61f53
No related branches found
No related tags found
No related merge requests found
......@@ -1108,7 +1108,7 @@ void feh_edit_inplace_lossless(winwidget w, int op)
"-outfile", file_str, file_str, NULL);
im_weprintf(w, "lossless %s: Is 'jpegtran' installed? Failed to exec:", op_name);
return;
exit(1);
} else {
waitpid(pid, &status, 0);
......@@ -1118,9 +1118,11 @@ void feh_edit_inplace_lossless(winwidget w, int op)
" Commandline was: "
"jpegtran -copy all %s %s -outfile %s %s",
op_name, status >> 8, op_op, op_value, file_str, file_str);
free(file_str);
return;
}
}
free(file_str);
}
void feh_draw_actions(winwidget w)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment