Skip to content

Commit 4ee3819

Browse files
committed
Fixes crash
1 parent 3537b50 commit 4ee3819

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

php_memcached.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,11 @@ static
13391339
void s_clear_keys(php_memc_keys_t *keys)
13401340
{
13411341
size_t i;
1342+
1343+
if (!keys->num_valid_keys) {
1344+
return;
1345+
}
1346+
13421347
for (i = 0; i < keys->num_valid_keys; i++) {
13431348
zend_string_release (keys->strings[i]);
13441349
}

0 commit comments

Comments
 (0)