Skip to content

Commit 218b019

Browse files
committed
Fix memory leak from recent change to s_compress_value
Commit c85f34c cleaned up the function, but missed an all-important efree(buffer) on the no-compression path.
1 parent e495a6b commit 218b019

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

php_memcached.c

+1
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,7 @@ zend_bool s_compress_value (php_memc_compression_type compression_type, zend_str
892892
}
893893

894894
/* Original payload was not modified */
895+
efree(buffer);
895896
return 0;
896897
}
897898

0 commit comments

Comments
 (0)