Browse code

libclamav/mpool.c: fix old free() call in cli_mp_hex2ui()

git-svn: trunk@4592

Tomasz Kojm authored on 2009/01/06 03:39:40
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Mon Jan  5 19:54:13 CET 2009 (tk)
2
+---------------------------------
3
+ * libclamav/mpool.c: fix old free() call in cli_mp_hex2ui()
4
+
1 5
 Mon Jan  5 12:56:59 EET 2009 (edwin)
2 6
 ------------------------------------
3 7
  * libclamav/regex_list.c: fix malformed .pdb handling (bb #1338)
... ...
@@ -626,7 +626,7 @@ uint16_t *cli_mp_hex2ui(mp_t *mp, const char *hex) {
626 626
   if(cli_realhex2ui(hex, str, len))
627 627
     return str;
628 628
     
629
-  free(str);
629
+  mp_free(mp, str);
630 630
   return NULL;
631 631
 }
632 632