From 31361075d36fd3f4a393eeb90b75ae2567992ef2 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 12 Jul 2014 14:34:39 +0200 Subject: [PATCH] Fix a potential file descriptor leak. Found by cppcheck. --- src/invitation.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/invitation.c b/src/invitation.c index a6996cc..28f9f8c 100644 --- a/src/invitation.c +++ b/src/invitation.c @@ -613,6 +613,7 @@ make_names: FILE *fh = fopen(filename, "w"); if(!fh) { fprintf(stderr, "Could not create file %s: %s\n", filename, strerror(errno)); + fclose(f); return false; } -- 2.25.1