mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Redis-Benchmark: avoid potentical memmory leaking
This commit is contained in:
parent
bf3a67be43
commit
07e1417ef0
@ -303,7 +303,7 @@ fail:
|
|||||||
else fprintf(stderr, "%s\n", hostsocket);
|
else fprintf(stderr, "%s\n", hostsocket);
|
||||||
freeReplyObject(reply);
|
freeReplyObject(reply);
|
||||||
redisFree(c);
|
redisFree(c);
|
||||||
zfree(cfg);
|
freeRedisConfig(cfg);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
static void freeRedisConfig(redisConfig *cfg) {
|
static void freeRedisConfig(redisConfig *cfg) {
|
||||||
|
Loading…
Reference in New Issue
Block a user