Skip to content

Commit c987e53

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fix #79333: com_print_typeinfo() leaks memory
2 parents b05c7fa + 3187575 commit c987e53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/com_dotnet/com_typeinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,8 @@ int php_com_process_typeinfo(ITypeInfo *typeinfo, HashTable *id_to_name, int pri
624624
ZVAL_STRINGL(&tmp, ansiname, ansinamelen);
625625
zend_hash_index_update(id_to_name, func->memid, &tmp);
626626
// TODO: avoid reallocation???
627-
efree(ansiname);
628627
}
628+
efree(ansiname);
629629
}
630630
ITypeInfo_ReleaseFuncDesc(typeinfo, func);
631631
}

0 commit comments

Comments
 (0)