]> Kevux Git Server - fll/commit
Security: The f_iki allocation functions are calling f_memory_destroy() and f_memory_...
authorKevin Day <kevin@kevux.org>
Sat, 22 Jul 2023 15:33:12 +0000 (10:33 -0500)
committerKevin Day <kevin@kevux.org>
Sat, 22 Jul 2023 15:33:12 +0000 (10:33 -0500)
commit909f2cb4f4ea3355354b88657438cc64623b5c09
tree3155b861e064d2791b118986040d9ce1b7c3f728
parent9893bd5b92ea50d440cb6f833733fb45a8c4f898
Security: The f_iki allocation functions are calling f_memory_destroy() and f_memory_delete() when they should not, causing memory leak.

The private_f_iki_datas_adjust() should be called instead of f_memory_destroy().
The private_f_iki_datas_resize() should be called instead of f_memory_delete().

This is because the iki_datass needs the individual sets within to be deallocated.
De-allocating at the top level via the f_memory_destroy() and f_memory_delete() is very probably a memory leak.
level_0/f_iki/c/iki/private-data.c