X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/399f2f401c6fc3d489e2e40ffc78638425e3a09e..b3aa6d712e1345a57696e4d260ce49ccac253ba7:/src/redis.c diff --git a/src/redis.c b/src/redis.c index 9978eab5..f6040dfe 100644 --- a/src/redis.c +++ b/src/redis.c @@ -826,7 +826,7 @@ int qsortRedisCommands(const void *r1, const void *r2) { void sortCommandTable() { /* Copy and sort the read-only version of the command table */ - commandTable = (struct redisCommand*)malloc(sizeof(readonlyCommandTable)); + commandTable = (struct redisCommand*)zmalloc(sizeof(readonlyCommandTable)); memcpy(commandTable,readonlyCommandTable,sizeof(readonlyCommandTable)); qsort(commandTable, sizeof(readonlyCommandTable)/sizeof(struct redisCommand),