mirror of
https://github.com/redis/redis.git
synced 2026-06-09 08:55:06 -04:00
Fix leak on VSIM FILTER syntax error.
This commit is contained in:
parent
774c05ab55
commit
3abc801d7a
1 changed files with 1 additions and 0 deletions
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue