From 003a784077cbc51d9d095715e4a3588cacc8ca70 Mon Sep 17 00:00:00 2001 From: David Raynor Date: Tue, 12 Feb 2013 16:51:10 -0500 Subject: [PATCH] cid #11136 --- libclamav/cvd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libclamav/cvd.c b/libclamav/cvd.c index 273e55b04..0defd562e 100644 --- a/libclamav/cvd.c +++ b/libclamav/cvd.c @@ -137,6 +137,7 @@ static int cli_untgz(int fd, const char *destdir) if(outfile) { if(fclose(outfile)) { cli_errmsg("cli_untgz: Cannot close file %s\n", path); + outfile = NULL; cli_untgz_cleanup(path, infile, outfile, fdd); return -1; }