Close f, from cppcheck
authorLove Hörnquist Åstrand <lha@kth.se>
Mon, 8 Jun 2009 20:33:22 +0000 (20:33 +0000)
committerLove Hörnquist Åstrand <lha@kth.se>
Mon, 8 Jun 2009 20:33:22 +0000 (20:33 +0000)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25277 ec53bebd-3082-4978-b11e-865c3cabbd6b

kpasswd/kpasswd-generator.c

index b121ea10e909a99a64b567a2fc26bebbce391e96..952531d3048a151201388f3dbdcf8a569772a0cc 100644 (file)
@@ -58,6 +58,7 @@ read_words (const char *filename, char ***ret_w)
     *ret_w = w;
     if (n == 0)
        errx(1, "%s is an empty file, no words to try", filename);
+    fclose(f);
     return n;
 }