Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
07e1417e
Commit
07e1417e
authored
May 18, 2020
by
hwware
Browse files
Redis-Benchmark: avoid potentical memmory leaking
parent
bf3a67be
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-benchmark.c
View file @
07e1417e
...
@@ -303,7 +303,7 @@ fail:
...
@@ -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
);
z
free
(
cfg
);
free
RedisConfig
(
cfg
);
return
NULL
;
return
NULL
;
}
}
static
void
freeRedisConfig
(
redisConfig
*
cfg
)
{
static
void
freeRedisConfig
(
redisConfig
*
cfg
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment