diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-05-24 18:54:03 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-05-24 18:54:03 +0000 |
commit | cef1cc7e14065b6e5aae2f90b30c4eaeb42e3657 (patch) | |
tree | 853739b7c44a42978d63dfd4983bc15168dc21ad /file.c | |
parent | b32c6c0658593ec55cf576311a65d6818f6475db (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 */ |