summaryrefslogtreecommitdiffstats
path: root/libhb/audio_resample.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2012-09-13 20:13:59 +0000
committerjstebbins <[email protected]>2012-09-13 20:13:59 +0000
commit8329bf01460521587889fd4133f76b32ccf13217 (patch)
treec0758b2c843c05b03ab1ad93857c6045ad7c0a91 /libhb/audio_resample.c
parentae8dee43bbcd12b5a4a532c7f4f65bf912479428 (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/audio_resample.c')
-rw-r--r--libhb/audio_resample.c2
1 files changed, 1 insertions, 1 deletions
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");