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

Skip to content

Commit 81cb2bc

Browse files
Fix memory leak for non cluster session handling
1 parent a24fa53 commit 81cb2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis_session.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ redis_pool_free(redis_pool *pool TSRMLS_DC) {
108108
while(rpm) {
109109
next = rpm->next;
110110
redis_sock_disconnect(rpm->redis_sock TSRMLS_CC);
111-
efree(rpm->redis_sock);
111+
redis_free_socket(rpm->redis_sock);
112112
if(rpm->prefix) efree(rpm->prefix);
113113
if(rpm->auth) efree(rpm->auth);
114114
efree(rpm);

0 commit comments

Comments
 (0)