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
commit9edc19f0f3501fd047e4bfcd3d293df7c17b71fb (patch)
tree299c4da2bc388e668dc094e568bd8eae071e143e /navit/plugin.c
parent7cd73ddaa1be9b9dcba6a7e70be50e8439208a90 (diff)
downloadnavit-svn-9edc19f0f3501fd047e4bfcd3d293df7c17b71fb.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 44ea7d12..4a3cc97d 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
}