Browse code

fix error path double free

git-svn: trunk@2331

Tomasz Kojm authored on 2006/09/30 00:42:59
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Fri Sep 29 17:38:31 CEST 2006 (tk)
2
+----------------------------------
3
+  * libclamav/readdb.c: fix error path double free, patch from Sven
4
+
1 5
 Thu Sep 28 08:32:45 BST 2006 (njh)
2 6
 ----------------------------------
3 7
   * libclamav/mbox.c:	Fix compilation error when --experimental is not
... ...
@@ -681,7 +681,6 @@ static int cli_loadndb(FILE *fd, struct cl_engine **engine, unsigned int *signo,
681 681
 	    cli_dbgmsg("Not supported target type in signature for %s\n", virname);
682 682
 	    sigs--;
683 683
 	    free(virname);
684
-	    free(pt);
685 684
 	    continue;
686 685
 	}
687 686