From: Mark Wooding Date: Thu, 18 Oct 2012 09:23:45 +0000 (+0100) Subject: linux.c (identify): Don't leak the file handle. X-Git-Tag: 1.0.0~19 X-Git-Url: https://git.distorted.org.uk/~mdw/yaid/commitdiff_plain/60150b4ccb3ecc350290eea3f03256ee32c284b4 linux.c (identify): Don't leak the file handle. --- diff --git a/linux.c b/linux.c index 252b69c..7ff1abc 100644 --- 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 -------------------------------------------------*/