aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorpascal <pascal@localhost>2012-04-30 15:57:39 +0000
committerpascal <pascal@localhost>2012-04-30 15:57:39 +0000
commitce8f5a4334392bea5eb1c5039b59b7627011607e (patch)
tree12cf805fa9923ea662894e0fb8536784acdf116d /epan/dissectors
parent01c4764ea29a5b0e24f3f6d3a329cf0587a1efa4 (diff)
From Evan Huus:
Fix memory leak in process_body_part() when there is no body https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7212 svn path=/trunk/; revision=42350
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-multipart.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-multipart.c b/epan/dissectors/packet-multipart.c
index 23a3cd64b2..06d7fc6a47 100644
--- a/epan/dissectors/packet-multipart.c
+++ b/epan/dissectors/packet-multipart.c
@@ -796,6 +796,9 @@ process_body_part(proto_tree *tree, tvbuff_t *tvb, const guint8 *boundary,
return boundary_start + boundary_line_len;
}
+ g_free(filename);
+ g_free(typename);
+
return -1;
}