Fixed missing memory free
This commit is contained in:
parent
1ffccd820f
commit
e722bd1d17
@ -55,6 +55,8 @@ int VirScan(char *path)
|
|||||||
if ((fp = fopen(temp, "r")) == NULL) {
|
if ((fp = fopen(temp, "r")) == NULL) {
|
||||||
WriteError("No virus scanners defined");
|
WriteError("No virus scanners defined");
|
||||||
free(temp);
|
free(temp);
|
||||||
|
free(stdlog);
|
||||||
|
free(errlog);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
fread(&virscanhdr, sizeof(virscanhdr), 1, fp);
|
fread(&virscanhdr, sizeof(virscanhdr), 1, fp);
|
||||||
@ -67,6 +69,8 @@ int VirScan(char *path)
|
|||||||
Syslog('+', "No active virus scanners, skipping scan");
|
Syslog('+', "No active virus scanners, skipping scan");
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
free(temp);
|
free(temp);
|
||||||
|
free(stdlog);
|
||||||
|
free(errlog);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user