summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-03-02 11:38:50 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-03-02 11:38:50 +0100
commitc987e538ac182bc851338a84a43f87ce00d78d9a (patch)
tree02cd0195915d0b2d1c73524d48d7c45c4d33b493
parentb05c7fae3349391f3c64475dc8a1188221c56804 (diff)
parent318757551a62f767a956db50e7d3592d7cb07407 (diff)
downloadphp-git-c987e538ac182bc851338a84a43f87ce00d78d9a.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: Fix #79333: com_print_typeinfo() leaks memory
-rw-r--r--ext/com_dotnet/com_typeinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/com_dotnet/com_typeinfo.c b/ext/com_dotnet/com_typeinfo.c
index 0c8ed5ad79..acd2e3d512 100644
--- a/ext/com_dotnet/com_typeinfo.c
+++ b/ext/com_dotnet/com_typeinfo.c
@@ -624,8 +624,8 @@ int php_com_process_typeinfo(ITypeInfo *typeinfo, HashTable *id_to_name, int pri
ZVAL_STRINGL(&tmp, ansiname, ansinamelen);
zend_hash_index_update(id_to_name, func->memid, &tmp);
// TODO: avoid reallocation???
- efree(ansiname);
}
+ efree(ansiname);
}
ITypeInfo_ReleaseFuncDesc(typeinfo, func);
}