summaryrefslogtreecommitdiffstats
path: root/src/intel/tools/decoder.c
diff options
context:
space:
mode:
authorGwan-gyeong Mun <[email protected]>2016-11-20 16:07:19 +0900
committerLionel Landwerlin <[email protected]>2016-11-21 14:38:11 +0000
commitd3780e2e4d0138721b43524fcea31e594361c648 (patch)
tree410f84263477059bb89e5fba9a1c24881e970e4f /src/intel/tools/decoder.c
parent51727b1cf57e8c4630767eb9ead207b102ffa489 (diff)
intel: aubinator: Fix resource leak in gen_spec_load_from_path
This fixes resource leak in gen_spec_load_from_path XML_ParserCreate failure path CID 1373564 Signed-off-by: Mun Gwan-gyeong <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/tools/decoder.c')
-rw-r--r--src/intel/tools/decoder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/tools/decoder.c b/src/intel/tools/decoder.c
index 6bd02bf9053..633251a44cf 100644
--- a/src/intel/tools/decoder.c
+++ b/src/intel/tools/decoder.c
@@ -539,6 +539,7 @@ gen_spec_load_from_path(const struct gen_device_info *devinfo,
XML_SetUserData(ctx.parser, &ctx);
if (ctx.parser == NULL) {
fprintf(stderr, "failed to create parser\n");
+ fclose(input);
free(filename);
return NULL;
}