Skip to content

Commit

Permalink
Simply return the error code in JPEG module
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed Aug 19, 2024
1 parent dbde8e4 commit 6556f56
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/jpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ 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;
}

pthread_mutex_unlock(&jpeg_mutex);
Expand Down

0 comments on commit 6556f56

Please sign in to comment.