changeset 25346:46736c300ae2

Fix memory leak, reported by Andrew Calkin <andrew P calkin A gmail P com>.
author ulion
date Wed, 12 Dec 2007 05:39:17 +0000
parents a892280560b5
children 22e5eb039c83
files libmenu/menu_dvbin.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmenu/menu_dvbin.c	Wed Dec 12 05:30:59 2007 +0000
+++ b/libmenu/menu_dvbin.c	Wed Dec 12 05:39:17 2007 +0000
@@ -213,6 +213,7 @@
 				sprintf(cmd_name, "loadfile 'dvb://%d@%s'", mpriv->card+1, elem->p.txt);
 		
 		c = mp_input_parse_cmd(cmd_name);
+		free(cmd_name);
     	if(c)
           {
             if (mpriv->auto_close)