summaryrefslogtreecommitdiff
path: root/navit/plugin.c
diff options
context:
space:
mode:
authorwoglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-04-16 15:37:10 +0000
committerwoglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-04-16 15:37:10 +0000
commitd4d7a2dafd58dcd093eb9783bce11993a56149ce (patch)
tree299c4da2bc388e668dc094e568bd8eae071e143e /navit/plugin.c
parent45a561093ad99c4d7c0b5695ecde1a643574f486 (diff)
downloadnavit-d4d7a2dafd58dcd093eb9783bce11993a56149ce.tar.gz
Fix:core:Fix small memleak found with valgrind, wordexp isn't needed after the name is set
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4431 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/plugin.c')
-rw-r--r--navit/plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/plugin.c b/navit/plugin.c
index 44ea7d12f..4a3cc97de 100644
--- a/navit/plugin.c
+++ b/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
}