Skip to content
Snippets Groups Projects
Forked from VideoLAN / x264
204 commits behind, 2 commits ahead of the upstream repository.
Derek Buitenhuis's avatar
Derek Buitenhuis authored
Check to make sure no call to strdup() failed to allocate.

A new return code, X264_PARAM_ALLOC_FAILED, which is consistent
with the existing documentation, has been added to accomodate
this.

Further, this also properly handles repeated calls to the
function with the same name, and no longer leaks when this
happens.

Signed-off-by: default avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
0a6827b5