8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 10:40:38 +01:00

Free memory issued for isql command list but has never been freed on output file write (#8016)

* Free memory issued for command list but never freed on file write

This kind of leak is not a big concern, but it interferes with isql.memdebug.log memory leaks log

* remove excessive resetting of the array length before its inevitable destruction
This commit is contained in:
AlexeyMochalov 2024-03-04 15:00:58 +03:00 committed by GitHub
parent d4eca55176
commit feb4714723
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,6 +130,9 @@ inline InputDevices::InputDevices(Firebird::MemoryPool& p)
inline InputDevices::~InputDevices()
{
for (unsigned n = 0; n < commands.getCount(); ++n)
delete commands[n];
clear();
}