Skip to content

Commit d362d85

Browse files
committed
fixup! experimental: dcz support in output handler
1 parent 0948315 commit d362d85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zstd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,7 @@ php_zstd_output_handler_load_dict(php_zstd_context *ctx)
13491349
"request(%s) != actual(%s)",
13501350
Z_STRVAL_P(available), ZSTR_VAL(b64));
13511351
PHP_ZSTD_G(compression_coding) &= ~PHP_ZSTD_ENCODING_DCZ;
1352+
zend_string_release(data);
13521353
data = NULL;
13531354
}
13541355
zend_string_free(b64);
@@ -1357,6 +1358,7 @@ php_zstd_output_handler_load_dict(php_zstd_context *ctx)
13571358
php_error_docref(NULL, E_WARNING,
13581359
"zstd: not found available-dictionary");
13591360
PHP_ZSTD_G(compression_coding) &= ~PHP_ZSTD_ENCODING_DCZ;
1361+
zend_string_release(data);
13601362
data = NULL;
13611363
}
13621364
}

0 commit comments

Comments
 (0)