Skip to content

Commit 46da22b

Browse files
yatsukhnenkomichael-grunder
authored andcommitted
Fix memory leak and add copyright header
1 parent 90cb69f commit 46da22b

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

redis_sentinel.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
+----------------------------------------------------------------------+
3+
| Copyright (c) The PHP Group |
4+
+----------------------------------------------------------------------+
5+
| This source file is subject to version 3.01 of the PHP license, |
6+
| that is bundled with this package in the file LICENSE, and is |
7+
| available through the world-wide-web at the following url: |
8+
| http://www.php.net/license/3_01.txt |
9+
| If you did not receive a copy of the PHP license and are unable to |
10+
| obtain it through the world-wide-web, please send a note to |
11+
| [email protected] so we can mail you a copy immediately. |
12+
+----------------------------------------------------------------------+
13+
| Author: Pavlo Yatsukhnenko <[email protected]> |
14+
| Maintainer: Michael Grunder <[email protected]> |
15+
+----------------------------------------------------------------------+
16+
*/
17+
118
#include "php_redis.h"
219
#include "redis_commands.h"
320
#include "redis_sentinel.h"

sentinel_library.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ sentinel_mbulk_reply_zipped_assoc(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis
5454
for (i = 0; i < nelem; ++i) {
5555
/* redis_mbulk_reply_zipped_raw calls redis_mbulk_reply_zipped
5656
* which puts result into return_value via RETVAL_ZVAL */
57-
array_init(return_value);
5857
redis_mbulk_reply_zipped_raw(INTERNAL_FUNCTION_PARAM_PASSTHRU, redis_sock, z_tab, ctx);
5958
add_next_index_zval(&z_ret, return_value);
6059
}

0 commit comments

Comments
 (0)