8000 memory leaks · jrtkcoder/phpredis@a06f423 · GitHub
[go: up one dir, main page]

Skip to content

Commit a06f423

Browse files
committed
memory leaks
charry-picked from 5778f03
1 parent f71a9a3 commit a06f423

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

redis_session.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ PS_OPEN_FUNC(redis)
269269

270270
if ((url->path == NULL && url->host == NULL) || weight <= 0 || timeout <= 0) {
271271
php_url_free(url);
272+
if (persistent_id) efree(persistent_id);
273+
if (prefix) efree(prefix);
274+
if (auth) efree(auth);
272275
redis_pool_free(pool TSRMLS_CC);
273276
PS_SET_MOD_DATA(NULL);
274277
return FAILURE;

0 commit comments

Comments
 (0)
0