diff options
author | jstebbins <[email protected]> | 2012-09-13 20:13:59 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2012-09-13 20:13:59 +0000 |
commit | 8329bf01460521587889fd4133f76b32ccf13217 (patch) | |
tree | c0758b2c843c05b03ab1ad93857c6045ad7c0a91 /libhb/taskset.c | |
parent | ae8dee43bbcd12b5a4a532c7f4f65bf912479428 (diff) |
libhb: fix a collection of small memory leaks
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4963 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/taskset.c')
-rw-r--r-- | libhb/taskset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libhb/taskset.c b/libhb/taskset.c index 35944175b..aced5dbc5 100644 --- a/libhb/taskset.c +++ b/libhb/taskset.c @@ -107,14 +107,14 @@ fail: free( ts->task_complete_bitmap ); /* FALL THROUGH */ case 3: - free( ts->task_begin_bitmap ); + free( ts->task_begin_bitmap ); /* FALL THROUGH */ case 2: - if( ts->task_threads_args == NULL ) + if( ts->task_threads_args == NULL ) free( ts->task_threads_args ); /* FALL THROUGH */ case 1: - free( ts->task_threads ); + free( ts->task_threads ); /* FALL THROUGH */ case 0: break; @@ -124,7 +124,7 @@ fail: int taskset_thread_spawn( taskset_t *ts, int thr_idx, const char *descr, - thread_func_t *func, int priority ) + thread_func_t *func, int priority ) { ts->task_threads[thr_idx] = hb_thread_init( descr, func, taskset_thread_args( ts, thr_idx ), |