]> granicus.if.org Git - icinga2/commitdiff
Add missing fclose() in mkembedconfig
authorGunnar Beutner <gunnar@beutner.name>
Mon, 2 Mar 2015 06:34:11 +0000 (07:34 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 2 Mar 2015 06:34:11 +0000 (07:34 +0100)
tools/mkembedconfig/mkembedconfig.c

index 12e4c89a18bf87c37779205f5fa675b6cba78430..d8c1d69159b6819364b2ed0445f9dbffe457607d 100644 (file)
@@ -43,6 +43,7 @@ int main(int argc, char **argv)
        outfp = fopen(argv[2], "w");
 
        if (!outfp) {
+               fclose(infp);
                perror("fopen");
                return EXIT_FAILURE;
        }