Skip to content

Commit f6153d2

Browse files
author
DvirDukhan
committed
free string instead of free
1 parent 58c6c4a commit f6153d2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/serialization/RDB/decoder/current/v1/decode_v1.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,8 @@ void *RAI_RDBLoadModel_v1(RedisModuleIO *io) {
172172
}
173173
RedisModule_Free(outputs);
174174
RedisModule_Free(buffer);
175-
176175
RedisModule_Free(devicestr);
177-
RedisModule_Free(stats_keystr);
176+
RedisModule_FreeString(NULL, stats_keystr);
178177

179178
return model;
180179

src/serialization/RDB/decoder/previous/v0/decode_v0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ void *RAI_RDBLoadModel_v0(RedisModuleIO *io) {
155155
RedisModule_Free(buffer);
156156

157157
RedisModule_Free(devicestr);
158-
RedisModule_Free(stats_keystr);
158+
RedisModule_FreeString(NULL, stats_keystr);
159159

160160
return model;
161161

0 commit comments

Comments
 (0)