Skip to content

Commit 371ae7a

Browse files
No need to execute copy constructor and explicitly delete
1 parent a6fa235 commit 371ae7a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,8 +1166,7 @@ static void array_zip_values_and_scores(RedisSock *redis_sock, zval *z_tab,
11661166

11671167
/* replace */
11681168
zval_dtor(z_tab);
1169-
ZVAL_ZVAL(z_tab, &z_ret, 1, 0);
1170-
zval_dtor(&z_ret);
1169+
ZVAL_ZVAL(z_tab, &z_ret, 0, 0);
11711170
}
11721171

11731172
static int

0 commit comments

Comments
 (0)