diff options
author | Damiano Galassi <[email protected]> | 2016-11-12 13:22:09 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2016-11-12 13:22:09 +0100 |
commit | 17a0f5b08907134ee9fcc1c86ce3f900c30db8c2 (patch) | |
tree | bd9204154589692fbe670d0f7852e1e368b3d8e4 /libhb/reader.c | |
parent | 167cc7aa759cea3698b43ccbeb223cdfcdee037d (diff) |
libhb: do not free hb_work_private_t in reader_init() if the reader open fail, it will be freed later in reader_close(). Fixes a crash that happens when hb_reader_open() fails because the source file was moved.
Diffstat (limited to 'libhb/reader.c')
-rw-r--r-- | libhb/reader.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libhb/reader.c b/libhb/reader.c index a0e9e9f5f..9b8b6084e 100644 --- a/libhb/reader.c +++ b/libhb/reader.c @@ -299,7 +299,6 @@ static int reader_init( hb_work_object_t * w, hb_job_t * job ) // with the reader. Specifically avcodec needs this. if ( hb_reader_open( r ) ) { - free( r ); return 1; } return 0; |