Skip to content

Commit

Permalink
Fix returning freed pointer.
Browse files Browse the repository at this point in the history
When XCreateImage fails, fim is freed and then returned. The returned
pointer value is invalid.
  • Loading branch information
Quipyowert2 committed Feb 6, 2021
1 parent ccb7eb4 commit 53a3d9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/FImage.c
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ FImage *FCreateFImage (
else
{
free(fim);
return NULL;
}
}

Expand Down

0 comments on commit 53a3d9e

Please sign in to comment.