aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-08-21 21:45:38 +0200
committerMattias Andrée <maandree@operamail.com>2013-08-21 21:45:38 +0200
commitce4c4463fe8cc7bcd9b22bd60d0515017310d4c1 (patch)
tree9035f5e2e1a0dfd07a3ee4687ba06b9cd97f0539
parentrare case memory leak (diff)
downloadargparser-ce4c4463fe8cc7bcd9b22bd60d0515017310d4c1.tar.gz
argparser-ce4c4463fe8cc7bcd9b22bd60d0515017310d4c1.tar.bz2
argparser-ce4c4463fe8cc7bcd9b22bd60d0515017310d4c1.tar.xz
missed to close file
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/argparser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/argparser.c b/src/argparser.c
index 122aa68..ccdc9e1 100644
--- a/src/argparser.c
+++ b/src/argparser.c
@@ -803,6 +803,7 @@ char* args_parent_name(long levels)
else
break;
}
+ fclose(is);
if (*cmd == 0)
{
free(cmd);