aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2012-05-24 18:54:03 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2012-05-24 18:54:03 +0000
commitcef1cc7e14065b6e5aae2f90b30c4eaeb42e3657 (patch)
tree853739b7c44a42978d63dfd4983bc15168dc21ad /file.c
parentb32c6c0658593ec55cf576311a65d6818f6475db (diff)
cf_update_capture_comment(): free the shb_inf when we're done with it.
svn path=/trunk/; revision=42830
Diffstat (limited to 'file.c')
-rw-r--r--file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/file.c b/file.c
index bfbc293ab1..83829d0e24 100644
--- a/file.c
+++ b/file.c
@@ -3693,10 +3693,13 @@ cf_update_capture_comment(capture_file *cf, gchar *comment)
if (shb_inf && shb_inf->opt_comment) {
if (strcmp(shb_inf->opt_comment, comment) == 0) {
g_free(comment);
+ g_free(shb_inf);
return;
}
}
+ g_free(shb_inf);
+
/* The comment has changed, let's update it */
wtap_write_shb_comment(cf->wth, comment);
/* Mark the file as having unsaved changes */