From 3682cdd28fed93c43d36116ae443fb50224d27cf Mon Sep 17 00:00:00 2001 From: Tristan Matthews Date: Sun, 22 Mar 2015 18:01:26 -0400 Subject: [PATCH] vpx: fix leak --- modules/codec/vpx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.2