From d118552100e7789832d64c1c385976b4c16e9d80 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 8 Oct 2006 09:43:18 +0000 Subject: [PATCH] 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 --- m_option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m_option.c b/m_option.c index 28a49a244d..4af943e98f 100644 --- a/m_option.c +++ b/m_option.c @@ -1428,7 +1428,7 @@ static int parse_obj_params(m_option_t* opt,char *name, return M_OPT_INVALID; 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); if(r < 0) return r;