Skip to content

Commit

Permalink
Fix minor memory leak in libebur (coverity-1215701).
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed May 24, 2014
1 parent 9beafb6 commit 9d35a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/plus/ebur128/ebur128.c
Expand Up @@ -264,7 +264,7 @@ ebur128_state* ebur128_init(unsigned int channels,
} else if ((mode & EBUR128_MODE_M) == EBUR128_MODE_M) {
st->d->audio_data_frames = st->d->samples_in_100ms * 4;
} else {
return NULL;
goto free_true_peak;
}
st->d->audio_data = (double*) malloc(st->d->audio_data_frames *
st->channels *
Expand Down

0 comments on commit 9d35a6b

Please sign in to comment.