diff options
author | David Tardon <dtardon@redhat.com> | 2013-05-09 12:39:37 +0200 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2013-05-10 11:51:40 +0900 |
commit | 0b5d0778d2fc94bd37d8077bd2aa9e6a699bd7ef (patch) | |
tree | ed7f6b2dd204062c49103ebf43709cf75d51f0c4 /data | |
parent | fe391934587dc931e74a1bd20a70903c11c5a568 (diff) |
coverity: close file handle
Diffstat (limited to 'data')
-rw-r--r-- | data/reg2xml.c | 3 |
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; } |