trafgen: fix resource leaks
commitabafb7e1679f268fea1f5b0f911cb75fcda44857
authorTobias Klauser <tklauser@distanz.ch>
Fri, 20 Oct 2017 12:52:57 +0000 (20 14:52 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 20 Oct 2017 12:54:58 +0000 (20 14:54 +0200)
treeca5fe9572765ba08798343800ebc44129ff2e378
parente843d29eec50dfcad948859b545eaf529731d28e
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>
trafgen_dev.c
trafgen_parser.y