shot - fix leak of img data in error path

fix CID 1425223
This commit is contained in:
Carsten Haitzler 2020-04-18 23:27:39 +01:00
parent 5e0bb63118
commit 5ac19b1372
1 changed files with 1 additions and 0 deletions

View File

@ -150,6 +150,7 @@ save_to(const char *file)
}
else
{
free(data);
free(thdat->path);
free(thdat->outfile);
free(thdat);