Commit 17494bc4 authored by Tristan Matthews's avatar Tristan Matthews

png: encoder: fix leak (CID 1435159)

Regression from 7442c8c7
parent 79afb971
......@@ -338,8 +338,7 @@ static int OpenEncoder(vlc_object_t *p_this)
/* Allocate the memory needed to store the encoder's structure */
encoder_sys_t *p_sys = malloc( sizeof(encoder_sys_t) );
p_enc->p_sys = malloc( sizeof(encoder_sys_t) );
if( p_enc->p_sys == NULL )
if( p_sys == NULL )
return VLC_ENOMEM;
p_enc->p_sys = p_sys;
......
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