8000 Use efree on a zval, not STR_FREE() :) · jrtkcoder/phpredis@76f77db · GitHub
[go: up one dir, main page]

Skip to content

Commit 76f77db

Browse files
Use efree on a zval, not STR_FREE() :)
1 parent 189e280 commit 76f77db

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

redis.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7163,7 +7163,7 @@ PHP_METHOD(Redis, zscan) {
71637163
* HyperLogLog based commands
71647164
*/
71657165

7166-
/* {{{ proto Redis::PFADD(string key, array elements) }}} */
7166+
/* {{{ proto Redis::pfAdd(string key, array elements) }}} */
71677167
PHP_METHOD(Redis, pfadd) {
71687168
zval *object;
71697169
RedisSock *redis_sock;
@@ -7237,7 +7237,7 @@ PHP_METHOD(Redis, pfadd) {
72377237
// Free memory if we serialized or converted types
72387238
if(z_tmp) {
72397239
zval_dtor(z_tmp);
7240-
STR_FREE(z_tmp);
7240+
efree(z_tmp);
72417241
z_tmp = NULL;
72427242
} else if(val_free) {
72437243
efree(mem);
@@ -7251,7 +7251,7 @@ PHP_METHOD(Redis, pfadd) {
72517251
REDIS_PROCESS_RESPONSE(redis_1_response);
72527252
}
72537253

7254-
/* {{{ proto Redis::PHFCOUNT(string key) }}}*/
7254+
/* {{{ proto Redis::pfCount(string key) }}}*/
72557255
PHP_METHOD(Redis, pfcount) {
72567256
zval *object;
72577 8000 257
RedisSock *redis_sock;
@@ -7340,15 +7340,15 @@ PHP_METHOD(Redis, pfmerge) {
73407340
key_len = Z_STRLEN_P(z_tmp);
73417341
}
73427342

7343-
// Prefix our key if necissary and append this key
7343+
// Prefix our key if necessary and append this key
73447344
key_free = redis_key_prefix(redis_sock, &key, &key_len TSRMLS_CC);
73457345
redis_cmd_append_sstr(&cmd, key, key_len);
73467346
if(key_free) efree(key);
73477347

73487348
// Free temporary zval if we converted
73497349
if(z_tmp) {
73507350
zval_dtor(z_tmp);
7351-
STR_FREE(z_tmp);
7351+
efree(z_tmp);
73527352
z_tmp = NULL;
73537353
}
73547354
}

0 commit comments

Comments
 (0)
0