Skip to content

Commit c1ef729

Browse files
committed
PCBC-335: Correct segfault caused by recent memory leak cleanup.
1 parent 616aaa7 commit c1ef729

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

transcoding.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ int pcbc_bytes_to_zval(bucket_object *obj, zval **zvalue, const void *bytes,
99
if (nbytes > 0) {
1010
ZVAL_STRINGL(&zbytes, bytes, nbytes, 0);
1111
} else {
12-
ZVAL_EMPTY_STRING(&zbytes);
12+
ZVAL_STRINGL(&zbytes, "", 0, 0);
1313
}
1414

1515
INIT_ZVAL(zflags);
@@ -24,10 +24,6 @@ int pcbc_bytes_to_zval(bucket_object *obj, zval **zvalue, const void *bytes,
2424
return FAILURE;
2525
}
2626

27-
zval_dtor(&zbytes);
28-
zval_dtor(&zflags);
29-
zval_dtor(&zdatatype);
30-
3127
return SUCCESS;
3228
}
3329

0 commit comments

Comments
 (0)