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
fefed597
Commit
fefed597
authored
Jan 15, 2010
by
antirez
Browse files
fixed a minor memory leak in configuration file parsing
parent
2316bb3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
fefed597
...
...
@@ -1633,6 +1633,7 @@ static void loadServerConfig(char *filename) {
err = "argument must be 'yes' or 'no'"; goto loaderr;
}
} else if (!strcasecmp(argv[0],"vm-swap-file") && argc == 2) {
zfree(server.vm_swap_file);
server.vm_swap_file = zstrdup(argv[1]);
} else if (!strcasecmp(argv[0],"vm-max-memory") && argc == 2) {
server.vm_max_memory = strtoll(argv[1], NULL, 10);
...
...
test-redis.tcl
View file @
fefed597
...
...
@@ -317,9 +317,9 @@ proc main {server port} {
set _ $err
}
{}
test
{
DBSIZE should be 10
0
01 now
}
{
test
{
DBSIZE should be 10
1
01 now
}
{
$r dbsize
}
{
10
0
01
}
}
{
10
1
01
}
test
{
INCR against non existing key
}
{
set res
{}
...
...
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