summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-05-09 12:39:37 +0200
committerAkira TAGOH <akira@tagoh.org>2013-05-10 11:51:40 +0900
commit0b5d0778d2fc94bd37d8077bd2aa9e6a699bd7ef (patch)
treeed7f6b2dd204062c49103ebf43709cf75d51f0c4 /data
parentfe391934587dc931e74a1bd20a70903c11c5a568 (diff)
coverity: close file handle
Diffstat (limited to 'data')
-rw-r--r--data/reg2xml.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/reg2xml.c b/data/reg2xml.c
index b6a8da3..aba0940 100644
--- a/data/reg2xml.c
+++ b/data/reg2xml.c
@@ -147,6 +147,7 @@ _parse(const char *filename,
buffer[len] = 0;
if (fsetpos(fp, &pos) == -1) {
lt_critical("Unable to parse mutliple line");
+ fclose(fp);
return FALSE;
}
}
@@ -178,6 +179,8 @@ _parse(const char *filename,
}
}
+ fclose(fp);
+
return TRUE;
}