mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 06:42:03 +00:00
Avoid memleak when calling parse_obj_params only for syntax-checking (dst == NULL)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20107 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b47b78a8d2
commit
d118552100
@ -1428,7 +1428,7 @@ static int parse_obj_params(m_option_t* opt,char *name,
|
|||||||
return M_OPT_INVALID;
|
return M_OPT_INVALID;
|
||||||
|
|
||||||
desc = p->desc;
|
desc = p->desc;
|
||||||
r = get_obj_params(name,desc->name,cpy,desc,p->separator,&opts);
|
r = get_obj_params(name,desc->name,cpy,desc,p->separator,dst ? &opts : NULL);
|
||||||
free(cpy);
|
free(cpy);
|
||||||
if(r < 0)
|
if(r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
Loading…
Reference in New Issue
Block a user