mirror of
https://github.com/phpredis/phpredis.git
synced 2026-06-19 07:35:31 +00:00
Fix memory leak if we fail in ps_open_redis.
This commit is contained in:
committed by
Michael Grunder
parent
9f3ca98c00
commit
0e92616591
@@ -563,6 +563,7 @@ PS_OPEN_FUNC(redis)
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
redis_pool_free(pool);
|
||||
return FAILURE;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
Reference in New Issue
Block a user