aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-09-10 23:38:36 +0100
committerJoão Valverde <j@v6e.pt>2017-09-11 16:48:49 +0000
commit69f0cb0cef3e8cc6b49073768f76ff1046ded8b5 (patch)
tree7a6314bf9e04fc5575a8c61df5f62c68be9e76c8 /tshark.c
parente7aa63746ba630d88032394f4869fca2c87853a8 (diff)
wsutil: Initialize and store plugin personal dir
Obviate allocation on every call to get_plugins_pers_dir(). Change-Id: I089ae499f93739d490d4552f59b5db5996f7d26f Reviewed-on: https://code.wireshark.org/review/23495 Petri-Dish: João Valverde <j@v6e.pt> Reviewed-by: Michael Mann <mmann78@netscape.net> Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tshark.c b/tshark.c
index c09aee7774..ad710b8b08 100644
--- a/tshark.c
+++ b/tshark.c
@@ -613,11 +613,7 @@ about_folders(void)
#if defined(HAVE_PLUGINS) || defined(HAVE_LUA)
/* pers plugins */
- path = get_plugins_pers_dir();
-
- printf("%-21s\t%s\n", "Personal Plugins:", path);
-
- g_free(path);
+ printf("%-21s\t%s\n", "Personal Plugins:", get_plugins_pers_dir());
/* global plugins */
printf("%-21s\t%s\n", "Global Plugins:", get_plugin_dir());