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
5661b190
Commit
5661b190
authored
Dec 02, 2019
by
Oran Agra
Browse files
fix crash in module short read test
parent
4092a75d
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/modules/testrdb.c
View file @
5661b190
...
@@ -20,6 +20,7 @@ void *testrdb_type_load(RedisModuleIO *rdb, int encver) {
...
@@ -20,6 +20,7 @@ void *testrdb_type_load(RedisModuleIO *rdb, int encver) {
long
double
ld
=
RedisModule_LoadLongDouble
(
rdb
);
long
double
ld
=
RedisModule_LoadLongDouble
(
rdb
);
if
(
RedisModule_IsIOError
(
rdb
))
{
if
(
RedisModule_IsIOError
(
rdb
))
{
RedisModuleCtx
*
ctx
=
RedisModule_GetContextFromIO
(
rdb
);
RedisModuleCtx
*
ctx
=
RedisModule_GetContextFromIO
(
rdb
);
if
(
str
)
RedisModule_FreeString
(
ctx
,
str
);
RedisModule_FreeString
(
ctx
,
str
);
return
NULL
;
return
NULL
;
}
}
...
...
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