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

kuser/generate-requests.c

index fab34d8f5fe34b65176aaa6bf3ef6a12c21c73de..cb80dac2c01fe7d1f7c210c1bd2f485f8769317a 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;
 }