From: Tristan Matthews Date: Sun, 22 Mar 2015 22:01:26 +0000 (-0400) Subject: vpx: fix leak X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=3682cdd28fed93c43d36116ae443fb50224d27cf vpx: fix leak --- diff --git a/modules/codec/vpx.c b/modules/codec/vpx.c index ac7d8d7156..1707e72db7 100644 --- a/modules/codec/vpx.c +++ b/modules/codec/vpx.c @@ -103,8 +103,10 @@ static picture_t *Decode(decoder_t *dec, block_t **pp_block) const void *iter = NULL; struct vpx_image *img = vpx_codec_get_frame(ctx, &iter); - if (!img) + if (!img) { + free(pkt_pts); return NULL; + } /* fetches back the PTS */ pkt_pts = img->user_priv;