Skip to content

Commit

Permalink
Missing mutex unlock in case a snapshot fails to be taken
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed Aug 19, 2024
1 parent 94eafb3 commit dbde8e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ int jpeg_get(short width, short height, char quality, char grayscale,
if (jpeg->data)
free(jpeg->data);
jpeg->data = NULL;
pthread_mutex_unlock(&jpeg_mutex);
return EXIT_FAILURE;
}

Expand Down

0 comments on commit dbde8e4

Please sign in to comment.