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

git version control git at videolan.org
Fri Sep 26 20:34:19 CEST 2008


vlc | branch: 0.9-bugfix | Rémi Duraffort <ivoire at videolan.org> | Wed Sep 24 22:40:20 2008 +0200| [6cdf1f5a153b41e01217134d32c792692745d9c3] | committer: Rémi Duraffort 

Avoid potential memleak.
(cherry picked from commit a1af59d67785b481efebef5b5db311b51ed05343)

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

 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 d4c7ba6..8d7d121 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -1101,6 +1101,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