X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=hcompress.c;h=9e36868b2d611998dffaf91947a1b0215d6b2b51;hb=ccf0849cbfe3013a00dff7f37cc68e774b241cb5;hp=1db33de3663a4108664e8947ab84cb9617fc7582;hpb=8dcce44300385b12c46d494c06aadcfa35a8bc14;p=xonotic%2Fdarkplaces.git diff --git a/hcompress.c b/hcompress.c index 1db33de3..9e36868b 100644 --- a/hcompress.c +++ b/hcompress.c @@ -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