8000 Merge branch 'php7' of github.com:phpredis/phpredis into php7 · jrtkcoder/phpredis@0d4b421 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0d4b421

Browse files
Merge branch 'php7' of github.com:phpredis/phpredis into php7
2 parents f24fc9f + 0cef4cd commit 0d4b421

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

library.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,6 +2223,7 @@ redis_read_variant_bulk(RedisSock *redis_sock, int size, zval **z_ret
22232223
return -1;
22242224
} else {
22252225
ZVAL_STRINGL(*z_ret, bulk_resp, size);
2226+
efree(bulk_resp);
22262227
return 0;
22272228
}
22282229
}

redis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3129,7 +3129,7 @@ redis_build_eval_cmd(RedisSock *redis_sock, char **ret, char *keyword,
31293129
if(key_free) efree(key);
31303130

31313131
// Free our temporary arg if we created one
3132-
if(Z_TYPE(z_tmp) == IS_UNDEF) {
3132+
if(!Z_ISUNDEF(z_tmp)) {
31333133
zval_dtor(&z_tmp);
31343134
}
31353135
}

0 commit comments

Comments
 (0)
0