diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-10-29 20:06:55 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-10-29 20:06:55 +0300 |
commit | c67fc6bb090d3faecc93691626e891540405fbf9 (patch) | |
tree | 6a415fcde5e6918b0463089d22fd1f748109324c /ext/soap | |
parent | 241e340f782dd1d2bbd15df684a210a878c3be35 (diff) | |
download | php-git-c67fc6bb090d3faecc93691626e891540405fbf9.tar.gz |
Fixed memory leak in php_stream_context_set_option()
Diffstat (limited to 'ext/soap')
-rw-r--r-- | ext/soap/php_sdl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index 14d690f533..84166780a6 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -296,7 +296,7 @@ void sdl_set_uri_credentials(sdlCtx *ctx, char *uri) memcpy(Z_STRVAL(new_header) + (s - Z_STRVAL_P(header)), rest, Z_STRLEN_P(header) - (rest - Z_STRVAL_P(header)) + 1); ZVAL_COPY(&ctx->old_header, header); php_stream_context_set_option(ctx->context, "http", "header", &new_header); - zval_dtor(&new_header); + zval_ptr_dtor(&new_header); } } } |