mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed string destruction (ext/mysql/tests/mysql_list_fields.phpt was failed)
This commit is contained in:
parent
0c5a1b835e
commit
ba45650d63
1 changed files with 18 additions and 6 deletions
|
@ -36,12 +36,24 @@ php_mysqlnd_free_field_metadata(MYSQLND_FIELD *meta, zend_bool persistent TSRMLS
|
|||
if (meta->def) {
|
||||
STR_RELEASE(meta->def);
|
||||
}
|
||||
STR_RELEASE(meta->name);
|
||||
STR_RELEASE(meta->org_name);
|
||||
STR_RELEASE(meta->table);
|
||||
STR_RELEASE(meta->org_table);
|
||||
STR_RELEASE(meta->db);
|
||||
STR_RELEASE(meta->catalog);
|
||||
if (meta->name) {
|
||||
STR_RELEASE(meta->name);
|
||||
}
|
||||
if (meta->org_name) {
|
||||
STR_RELEASE(meta->org_name);
|
||||
}
|
||||
if (meta->table) {
|
||||
STR_RELEASE(meta->table);
|
||||
}
|
||||
if (meta->org_table) {
|
||||
STR_RELEASE(meta->org_table);
|
||||
}
|
||||
if (meta->db) {
|
||||
STR_RELEASE(meta->db);
|
||||
}
|
||||
if (meta->catalog) {
|
||||
STR_RELEASE(meta->catalog);
|
||||
}
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue