comparison utils.c @ 5098:8c0eb348c19b libavformat

Fix mem leak when user preallocates an AVFormatContext, passes it to av_open_input_file(), but the file does not exist. Patch by Art Clarke a$(surname) xuggle com
author benoit
date Wed, 08 Jul 2009 08:26:57 +0000
parents c64438359260
children ccb7812599f4
comparison
equal deleted inserted replaced
5097:453175c733c4 5098:8c0eb348c19b
497 return 0; 497 return 0;
498 fail: 498 fail:
499 av_freep(&pd->buf); 499 av_freep(&pd->buf);
500 if (pb) 500 if (pb)
501 url_fclose(pb); 501 url_fclose(pb);
502 *ic_ptr = NULL; 502 av_freep(ic_ptr);
503 return err; 503 return err;
504 504
505 } 505 }
506 506
507 /*******************************************************/ 507 /*******************************************************/