malloc -> xmalloc
[oweals/opkg-lede.git] / libbb / unzip.c
index 20a4d74ed7936d6333a8b496ec7cda4aa92a0218..88d2a0aed8dc663d738047698e4b95c8bd2e6331 100644 (file)
@@ -113,7 +113,7 @@ static void make_crc_table()
 
        /* initial shift register value */
        crc = 0xffffffffL;      
-       crc_table = (unsigned long *) malloc(256 * sizeof(unsigned long));
+       crc_table = (unsigned long *) xmalloc(256 * sizeof(unsigned long));
 
        /* Make exclusive-or pattern from polynomial (0xedb88320) */
        for (i = 0; i < sizeof(p)/sizeof(int); i++)