aboutsummaryrefslogtreecommitdiffstats
path: root/fbtools.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-04-22 10:59:55 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-04-22 10:59:55 +0200
commit66e54b48ebd46b10321c2d908688e338d8ccf82d (patch)
treeaa9150167b615e70f0202ee79937e25a73deca1a /fbtools.c
parent2d9c80aeed545542a0bd9d0306711991adaf9f00 (diff)
downloadfbida-66e54b48ebd46b10321c2d908688e338d8ccf82d.tar.gz
fix file descriptor leak
reported by David Binderman
Diffstat (limited to 'fbtools.c')
-rw-r--r--fbtools.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fbtools.c b/fbtools.c
index 29579ab..297b8d2 100644
--- a/fbtools.c
+++ b/fbtools.c
@@ -198,6 +198,7 @@ fb_setmode(char *name)
return 0;
}
}
+ fclose(fp);
return -1;
}