mirror of
https://github.com/redis/redis.git
synced 2026-05-14 03:01:49 -04:00
Fix leak on VSIM FILTER syntax error.
This commit is contained in:
1
vset.c
1
vset.c
@@ -802,6 +802,7 @@ int VSIM_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
|
||||
filter_expr = exprCompile(exprstr,&errpos);
|
||||
if (filter_expr == NULL) {
|
||||
if ((size_t)errpos >= exprlen) errpos = 0;
|
||||
RedisModule_Free(vec);
|
||||
return RedisModule_ReplyWithErrorFormat(ctx,
|
||||
"ERR syntax error in FILTER expression near: %s",
|
||||
exprstr+errpos);
|
||||
|
||||
Reference in New Issue
Block a user