- Fix leak

This commit is contained in:
Jani Taskinen 2008-12-17 15:38:32 +00:00
parent a5ab3d7ae0
commit bfe52a53fc

View File

@ -1262,6 +1262,10 @@ PHP_FUNCTION(curl_init)
ZEND_REGISTER_RESOURCE(return_value, ch, le_curl);
ch->id = Z_LVAL_P(return_value);
if (url_type == IS_UNICODE) {
efree(url.s);
}
}
/* }}} */
@ -1933,8 +1937,8 @@ PHP_FUNCTION(curl_getinfo)
long option = 0;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|l", &zid, &option) == FAILURE) {
RETURN_FALSE;
}
RETURN_FALSE;
}
ZEND_FETCH_RESOURCE(ch, php_curl *, &zid, -1, le_curl_name, le_curl);