[vlc-devel] commit: itml: fix memleak. ( Rémi Duraffort )

git version control git at videolan.org
Thu Jul 16 12:01:20 CEST 2009


vlc | branch: 1.0-bugfix | Rémi Duraffort <ivoire at videolan.org> | Thu Jul 16 11:53:58 2009 +0200| [317a7c51e056a660edd99f7284b5aa3ae0cf54eb] | committer: Rémi Duraffort 

itml: fix memleak.
(cherry picked from commit 564cbe7b5c50f0ced8ed1b6a1b1ac1d99ce6dd0b)

Conflicts:

	modules/demux/playlist/itml.c

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=317a7c51e056a660edd99f7284b5aa3ae0cf54eb
---

 modules/demux/playlist/itml.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/demux/playlist/itml.c b/modules/demux/playlist/itml.c
index 53c7569..9022c56 100644
--- a/modules/demux/playlist/itml.c
+++ b/modules/demux/playlist/itml.c
@@ -276,6 +276,7 @@ static bool parse_dict COMPLEX_INTERFACE
                 /* special case: key */
                 if( !strcmp( p_handler->name, "key" ) )
                 {
+                    free( psz_key );
                     psz_key = strdup( psz_value );
                 }
                 /* call the simple handler */




More information about the vlc-devel mailing list