Skip to content

Commit 3187575

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix #79333: com_print_typeinfo() leaks memory
2 parents b9843c9 + 53140e5 commit 3187575

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ PHP NEWS
1818
. Fixed bug #79299 (com_print_typeinfo prints duplicate variables). (Litiano
1919
Moura)
2020
. Fixed bug #79332 (php_istreams are never freed). (cmb)
21+
. Fixed bug #79333 (com_print_typeinfo() leaks memory). (cmb)
2122

2223
- CURL:
2324
. Fixed bug #79019 (Copied cURL handles upload empty file). (cmb)

ext/com_dotnet/com_typeinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,8 @@ int php_com_process_typeinfo(ITypeInfo *typeinfo, HashTable *id_to_name, int pri
626626
ZVAL_STRINGL(&tmp, ansiname, ansinamelen);
627627
zend_hash_index_update(id_to_name, func->memid, &tmp);
628628
// TODO: avoid reallocation???
629-
efree(ansiname);
630629
}
630+
efree(ansiname);
631631
}
632632
ITypeInfo_ReleaseFuncDesc(typeinfo, func);
633633
}

0 commit comments

Comments
 (0)