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
7e1d5954
"vscode:/vscode.git/clone" did not exist on "1a22445d30809d36aa777f187c4217f38d11b53e"
Commit
7e1d5954
authored
Feb 06, 2020
by
Oran Agra
Browse files
Memory leak when bind config is provided twice
parent
44ac202f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
7e1d5954
...
...
@@ -349,6 +349,10 @@ void loadServerConfigFromString(char *config) {
if
(
addresses
>
CONFIG_BINDADDR_MAX
)
{
err
=
"Too many bind addresses specified"
;
goto
loaderr
;
}
/* Free old bind addresses */
for
(
j
=
0
;
j
<
server
.
bindaddr_count
;
j
++
)
{
zfree
(
server
.
bindaddr
[
j
]);
}
for
(
j
=
0
;
j
<
addresses
;
j
++
)
server
.
bindaddr
[
j
]
=
zstrdup
(
argv
[
j
+
1
]);
server
.
bindaddr_count
=
addresses
;
...
...
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