chiark
/
gitweb
/
~mdw
/
yaid
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bf4d976
)
linux.c (identify): Don't leak the file handle.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 18 Oct 2012 09:23:45 +0000
(10:23 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 21 Oct 2012 15:08:58 +0000
(16:08 +0100)
linux.c
patch
|
blob
|
blame
|
history
diff --git
a/linux.c
b/linux.c
index 252b69c1f1decccc109766f57b972e723e398209..7ff1abcc4f619a1eee2bd5f4de3cff6c6c675612 100644
(file)
--- a/
linux.c
+++ b/
linux.c
@@
-335,6
+335,7
@@
err_unk:
q->u.error = E_UNKNOWN;
done:
dstr_destroy(&d);
q->u.error = E_UNKNOWN;
done:
dstr_destroy(&d);
+ if (fp) fclose(fp);
}
/*----- That's all, folks -------------------------------------------------*/
}
/*----- That's all, folks -------------------------------------------------*/