Commit 5661b190 authored by Oran Agra's avatar Oran Agra
Browse files

fix crash in module short read test

parent 4092a75d
...@@ -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;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment