mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-02 22:59:59 +01:00
[orbis-kernel] Reset memory in kfree
This commit is contained in:
parent
b969ce893a
commit
71444c236a
|
|
@ -158,6 +158,7 @@ void KernelContext::kfree(void *ptr, std::size_t size) {
|
|||
~(__STDCPP_DEFAULT_NEW_ALIGNMENT__ - 1);
|
||||
if (!size)
|
||||
std::abort();
|
||||
std::memset(ptr, 0xcc, size);
|
||||
|
||||
pthread_mutex_lock(&m_heap_mtx);
|
||||
if (m_heap_is_freeing)
|
||||
|
|
|
|||
Loading…
Reference in a new issue