[vlc-devel] commit: Avoid potential memleak. ( Rémi Duraffort )

git version control git at videolan.org
Wed Sep 24 22:40:08 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Sep 24 22:40:20 2008 +0200| [a1af59d67785b481efebef5b5db311b51ed05343] | committer: Rémi Duraffort 

Avoid potential memleak.

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

 src/misc/variables.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/misc/variables.c b/src/misc/variables.c
index 6064ca3..ad297c6 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -1096,6 +1096,7 @@ void var_OptionParse( vlc_object_t *p_obj, const char *psz_option,
         {
             msg_Err( p_obj, "unsafe option \"%s\" has been ignored for "
                             "security reasons", psz_name );
+            free( psz_name );
             return;
         }
     }




More information about the vlc-devel mailing list