Browse Source

whoops, mismatched malloc/free

David Rose 18 years ago
parent
commit
828d1d9bce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/express/patchfile.cxx

+ 1 - 1
panda/src/express/patchfile.cxx

@@ -1016,7 +1016,7 @@ compute_file_patches(ostream &write_stream,
       express_cat.debug()
         << "Allocating hashtable of size " << _HASHTABLESIZE << " * 4\n";
     }
-    _hash_table = new PN_uint32[_HASHTABLESIZE];
+    _hash_table = (PN_uint32 *)PANDA_MALLOC_ARRAY(_HASHTABLESIZE * sizeof(PN_uint32));
   }
 
   if (express_cat.is_debug()) {