Skip to content

Commit 35a543f

Browse files
laruencerlerdorf
authored andcommitted
Fixed memory leak
1 parent a3279a8 commit 35a543f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php_memcached.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@ static void php_memc_delete_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool by_key)
16991699
if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|l", &key, &expiration) == FAILURE) {
17001700
return;
17011701
}
1702-
server_key = zend_string_copy(key);
1702+
server_key = key;
17031703
}
17041704

17051705
MEMC_METHOD_FETCH_OBJECT;

0 commit comments

Comments
 (0)