From e722bd1d176d4d316feac1c5de1ef9562d064e0e Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sat, 3 Dec 2005 14:11:33 +0000 Subject: [PATCH] Fixed missing memory free --- mbfido/virscan.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mbfido/virscan.c b/mbfido/virscan.c index 27eb984e..ba0bcf91 100644 --- a/mbfido/virscan.c +++ b/mbfido/virscan.c @@ -55,6 +55,8 @@ int VirScan(char *path) if ((fp = fopen(temp, "r")) == NULL) { WriteError("No virus scanners defined"); free(temp); + free(stdlog); + free(errlog); return FALSE; } fread(&virscanhdr, sizeof(virscanhdr), 1, fp); @@ -67,6 +69,8 @@ int VirScan(char *path) Syslog('+', "No active virus scanners, skipping scan"); fclose(fp); free(temp); + free(stdlog); + free(errlog); return FALSE; }