summaryrefslogtreecommitdiff
path: root/captype.c
diff options
context:
space:
mode:
Diffstat (limited to 'captype.c')
-rw-r--r--captype.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/captype.c b/captype.c
index d83b21485c..87e4f92d2a 100644
--- a/captype.c
+++ b/captype.c
@@ -118,6 +118,8 @@ main(int argc, char *argv[])
"\n"
"%s",
get_ws_vcs_version_info(), comp_info_str->str, runtime_info_str->str);
+ g_string_free(comp_info_str, TRUE);
+ g_string_free(runtime_info_str, TRUE);
#ifdef _WIN32
arg_list_utf_16to8(argc, argv);
@@ -168,6 +170,8 @@ main(int argc, char *argv[])
break;
case 'v':
+ comp_info_str = get_compiled_version_info(NULL, NULL);
+ runtime_info_str = get_runtime_version_info(NULL);
show_version("Captype (Wireshark)", comp_info_str, runtime_info_str);
g_string_free(comp_info_str, TRUE);
g_string_free(runtime_info_str, TRUE);