From: woglinde Date: Sat, 16 Apr 2011 15:37:10 +0000 (+0000) Subject: Fix:core:Fix small memleak found with valgrind, wordexp isn't needed after the name... X-Git-Tag: navit-0.5.0.5194svn~764 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ee78b0f7118a70dde6c31863cd4c3504bc31b47;p=profile%2Fivi%2Fnavit.git Fix:core:Fix small memleak found with valgrind, wordexp isn't needed after the name is set git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4431 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- diff --git a/navit/navit/plugin.c b/navit/navit/plugin.c index 44ea7d1..4a3cc97 100644 --- a/navit/navit/plugin.c +++ b/navit/navit/plugin.c @@ -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 }