linux.c (identify): Don't leak the file handle.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 18 Oct 2012 09:23:45 +0000 (10:23 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 21 Oct 2012 15:08:58 +0000 (16:08 +0100)
linux.c

diff --git a/linux.c b/linux.c
index 252b69c..7ff1abc 100644 (file)
--- a/linux.c
+++ b/linux.c
@@ -335,6 +335,7 @@ err_unk:
   q->u.error = E_UNKNOWN;
 done:
   dstr_destroy(&d);
+  if (fp) fclose(fp);
 }
 
 /*----- That's all, folks -------------------------------------------------*/