Fix:core:Fix small memleak found with valgrind, wordexp isn't needed after the name...
authorwoglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 16 Apr 2011 15:37:10 +0000 (15:37 +0000)
committerwoglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 16 Apr 2011 15:37:10 +0000 (15:37 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4431 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/plugin.c

index 44ea7d1..4a3cc97 100644 (file)
@@ -325,8 +325,8 @@ plugin_new(struct attr *parent, struct attr **attrs) {
                                        plugin_call_init(pl);
                        }
                }
-               file_wordexp_destroy(we);
        }
+       file_wordexp_destroy(we);
        return pl;
 #endif
 }