Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0e92616

Browse files
Fix memory leak if we fail in ps_open_redis.
1 parent 9f3ca98 commit 0e92616

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

redis_session.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@ PS_OPEN_FUNC(redis)
563563
return SUCCESS;
564564
}
565565

566+
redis_pool_free(pool);
566567
return FAILURE;
567568
}
568569
/* }}} */

0 commit comments

Comments
 (0)