From d3780e2e4d0138721b43524fcea31e594361c648 Mon Sep 17 00:00:00 2001 From: Gwan-gyeong Mun Date: Sun, 20 Nov 2016 16:07:19 +0900 Subject: [PATCH] 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 Reviewed-by: Lionel Landwerlin --- src/intel/tools/decoder.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2