From 8329bf01460521587889fd4133f76b32ccf13217 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Thu, 13 Sep 2012 20:13:59 +0000 Subject: libhb: fix a collection of small memory leaks git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4963 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/audio_resample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libhb/audio_resample.c') diff --git a/libhb/audio_resample.c b/libhb/audio_resample.c index ce80bc5fe..bd9cbf61c 100644 --- a/libhb/audio_resample.c +++ b/libhb/audio_resample.c @@ -15,7 +15,7 @@ hb_audio_resample_t* hb_audio_resample_init(enum AVSampleFormat sample_fmt, int hb_amixdown, int do_remix, int normalize_mix_level) { - hb_audio_resample_t *resample = malloc(sizeof(hb_audio_resample_t)); + hb_audio_resample_t *resample = calloc(1, sizeof(hb_audio_resample_t)); if (resample == NULL) { hb_error("hb_audio_resample_init: failed to allocate resample"); -- cgit v1.2.3