Commit 2b57b9ef authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Ilkka Ollakka

codec/vpx.c: do not leak memory.

Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
parent 5e36cb2c
......@@ -72,8 +72,10 @@ static picture_t *Decode(decoder_t *dec, block_t **pp_block)
if (!block)
return NULL;
if (block->i_flags & (BLOCK_FLAG_CORRUPTED))
if (block->i_flags & (BLOCK_FLAG_CORRUPTED)) {
block_Release(block);
return NULL;
}
/* Associate packet PTS with decoded frame */
mtime_t *pkt_pts = malloc(sizeof(*pkt_pts));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment