summaryrefslogtreecommitdiff
path: root/trafgen_parser.y
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-10-20 14:52:57 +0200
committerTobias Klauser <tklauser@distanz.ch>2017-10-20 14:54:58 +0200
commitabafb7e1679f268fea1f5b0f911cb75fcda44857 (patch)
treeca5fe9572765ba08798343800ebc44129ff2e378 /trafgen_parser.y
parente843d29eec50dfcad948859b545eaf529731d28e (diff)
trafgen: fix resource leaks
Fix two resource leaks in trafgen. Fixes Coverity CID 1381807 and CID 1381811. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r--trafgen_parser.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y
index 38f170a..a42dc30 100644
--- a/trafgen_parser.y
+++ b/trafgen_parser.y
@@ -1360,6 +1360,7 @@ dns_rrecord_data_fqdn
str[strlen($1 + 1) - 1] = '\0';
fqdn = str2fqdn(str);
proto_hdr_field_set_bytes(hdr, DNS_RRECORD_DATA, (uint8_t *) fqdn, strlen(fqdn) + 1);
+ xfree(str);
xfree(fqdn); }
;