[vlc-devel] commit: don't try to free a non existing string (Geoffroy Couprie )

git version control git at videolan.org
Mon Sep 22 11:48:14 CEST 2008


vlc | branch: master | Geoffroy Couprie <geo.couprie at gmail.com> | Mon Sep 22 11:51:22 2008 +0200| [86929a52374b45dfa680be29763df113425d6cf6] | committer: Geoffroy Couprie 

don't try to free a non existing string

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

 src/modules/modules.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/modules/modules.c b/src/modules/modules.c
index 1c3001f..e9ea5f7 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -1347,11 +1347,10 @@ static void UndupModule( module_t *p_module )
         free( *pp_shortcut );
     }
 
-    FREENULL( p_module->psz_object_name );
     free( p_module->psz_capability );
-    free( p_module->psz_shortname );
+    FREENULL( p_module->psz_shortname );
     free( p_module->psz_longname );
-    free( p_module->psz_help );
+    FREENULL( p_module->psz_help );
 }
 
 #endif /* HAVE_DYNAMIC_PLUGINS */




More information about the vlc-devel mailing list