]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - hcompress.c
every malloc/calloc/free converted to qmalloc/qfree with tracking (memstats command...
[xonotic/darkplaces.git] / hcompress.c
index 1db33de3663a4108664e8947ab84cb9617fc7582..9e36868b2d611998dffaf91947a1b0215d6b2b51 100644 (file)
@@ -170,8 +170,8 @@ int hcompress_compress(void *indata, void *outdata, int size)
                int length; // length of the chain
        } hashindex[256][256];
        int *hashtable;
-       token = malloc(size*sizeof(struct hctoken));
-       hashtable = malloc(size*sizeof(int));
+       token = qmalloc(size*sizeof(struct hctoken));
+       hashtable = qmalloc(size*sizeof(int));
        in = indata;
        memset(&hashindex, 0, sizeof(hashindex));
        // count the chain lengths