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
89849c8b
Unverified
Commit
89849c8b
authored
Dec 02, 2019
by
Salvatore Sanfilippo
Committed by
GitHub
Dec 02, 2019
Browse files
Merge pull request #6638 from oranagra/fix_module_short_read_test
fix crash in module short read test
parents
4092a75d
5661b190
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/modules/testrdb.c
View file @
89849c8b
...
...
@@ -20,7 +20,8 @@ void *testrdb_type_load(RedisModuleIO *rdb, int encver) {
long
double
ld
=
RedisModule_LoadLongDouble
(
rdb
);
if
(
RedisModule_IsIOError
(
rdb
))
{
RedisModuleCtx
*
ctx
=
RedisModule_GetContextFromIO
(
rdb
);
RedisModule_FreeString
(
ctx
,
str
);
if
(
str
)
RedisModule_FreeString
(
ctx
,
str
);
return
NULL
;
}
/* Using the values only after checking for io errors. */
...
...
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