summaryrefslogtreecommitdiffstats
path: root/libhb/batch.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-07-19 17:36:12 +0000
committerjstebbins <[email protected]>2011-07-19 17:36:12 +0000
commit244f212aa465806e34e9c4640afffbe2dccefc4a (patch)
treec88b83dabd6f233f87907f45678314c66f195b7f /libhb/batch.c
parent4c30ccadee5199d8c9bd0a4c4d38b50216cac409 (diff)
libhb: plug a few memory leaks
Noticed when debugging a memory corruption issue with valgrind git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4122 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/batch.c')
-rw-r--r--libhb/batch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/batch.c b/libhb/batch.c
index 698798c7b..e96520a67 100644
--- a/libhb/batch.c
+++ b/libhb/batch.c
@@ -57,6 +57,7 @@ hb_batch_t * hb_batch_init( char * path )
hb_list_add( d->list_file, filename );
}
+ closedir( dir );
if ( hb_list_count( d->list_file ) == 0 )
{
hb_list_close( &d->list_file );