[MPlayer-cvslog] r20107 - trunk/m_option.c

reimar subversion at mplayerhq.hu
Sun Oct 8 11:43:18 CEST 2006


Author: reimar
Date: Sun Oct  8 11:43:18 2006
New Revision: 20107

Modified:
   trunk/m_option.c

Log:
Avoid memleak when calling parse_obj_params only for syntax-checking (dst == NULL)


Modified: trunk/m_option.c
==============================================================================
--- trunk/m_option.c	(original)
+++ trunk/m_option.c	Sun Oct  8 11:43:18 2006
@@ -1428,7 +1428,7 @@
     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;



More information about the MPlayer-cvslog mailing list