Changeset 3414 for libpipi


Ignore:
Timestamp:
Mar 29, 2009, 12:26:47 AM (12 years ago)
Author:
Sam Hocevar
Message:

jpeg.c: fix a huge resource leak in the error codepath of the JPEG codec.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/codec/jpeg.c

    r3401 r3414  
    6969    FILE *fp;
    7070
    71     if(setjmp(jerr.setjmp_buffer))
    72         return NULL;
    73 
    7471    fp = fopen(name, "rb");
    7572    if(!fp)
    7673        return NULL;
     74
     75    if(setjmp(jerr.setjmp_buffer))
     76        goto end;
    7777
    7878    cinfo.err = jpeg_std_error(&jerr.pub);
Note: See TracChangeset for help on using the changeset viewer.