aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorshqking <shqking@gmail.com>2017-09-08 21:23:43 -0400
committerMichael Mann <mmann78@netscape.net>2017-09-09 12:09:37 +0000
commit84ee66b9bc97bfa294f11b4083f8f09b115c17e0 (patch)
tree40877ddf91c6654580caeda0da26d20296365187 /plugins
parenta24f366ceb8eccf2e3a0501a394653c9eb6bed83 (diff)
packet-dcerpc-pn-io.c: Fix potential resource leak
Bug: 13826 Change-Id: I01674d5a31281508686bc06e222d6a87926d1c83 Reviewed-on: https://code.wireshark.org/review/23436 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/profinet/packet-dcerpc-pn-io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/profinet/packet-dcerpc-pn-io.c b/plugins/profinet/packet-dcerpc-pn-io.c
index fd1bb51ad9..b00aa3f69a 100644
--- a/plugins/profinet/packet-dcerpc-pn-io.c
+++ b/plugins/profinet/packet-dcerpc-pn-io.c
@@ -9688,6 +9688,12 @@ dissect_ExpectedSubmoduleBlockReq_block(tvbuff_t *tvb, int offset,
fp = NULL;
}
+ if(fp != NULL)
+ {
+ fclose(fp);
+ fp = NULL;
+ }
+
switch (u16SubmoduleProperties & 0x03) {
case(0x00): /* no input and no output data (one Input DataDescription Block follows) */
offset = dissect_DataDescription(tvb, offset, pinfo, sub_tree, drep, io_data_object);