mirror of
https://github.com/fluencelabs/redis
synced 2025-06-20 20:46:31 +00:00
use the function deprecated attribute if compiling with GCC to get warnings for malloc/free usages. We always want to use our zmalloc/zfree versions for memory usage tracking
This commit is contained in:
@ -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),
|
||||
|
Reference in New Issue
Block a user