git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@717 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2004/08/03 09:25:31... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Tue Aug 3 02:20:03 CEST 2004 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav: scanhtml: fix memory leak (reported by Mike Lambert |
|
4 |
+ <lambert*jeol.com>) |
|
5 |
+ |
|
1 | 6 |
Tue Aug 3 02:03:17 CEST 2004 (tk) |
2 | 7 |
---------------------------------- |
3 | 8 |
* libclamav: matcher-bm: fix scan boundary |
... | ... |
@@ -686,6 +686,7 @@ static int cli_scanhtml(int desc, const char **virname, long int *scanned, const |
686 | 686 |
ret = cl_scanbuff(newbuff, strlen(newbuff), virname, root); |
687 | 687 |
|
688 | 688 |
free(newbuff); |
689 |
+ munmap(membuff, statbuf.st_size); |
|
689 | 690 |
return ret; |
690 | 691 |
#else /* FIXME */ |
691 | 692 |
return CL_CLEAN; |