mirror of
https://github.com/redis/redis.git
synced 2026-06-09 08:55:06 -04:00
VSIM: fix double free if thread creation fails.
This commit is contained in:
parent
9d4325ee25
commit
8dfc501fb8
1 changed files with 0 additions and 1 deletions
1
vset.c
1
vset.c
|
|
@ -970,7 +970,6 @@ int VSIM_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
|
|||
if (pthread_create(&tid,NULL,VSIM_thread,targ) != 0) {
|
||||
pthread_rwlock_unlock(&vset->in_use_lock);
|
||||
RedisModule_AbortBlock(bc);
|
||||
RedisModule_Free(vec);
|
||||
RedisModule_Free(targ[4]);
|
||||
RedisModule_Free(targ);
|
||||
VSIM_execute(ctx, vset, vec, count, epsilon, withscores, ef, filter_expr, filter_ef, ground_truth);
|
||||
|
|
|
|||
Loading…
Reference in a new issue