Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6c774853 authored by Mike Yu's avatar Mike Yu
Browse files

Allocate resolv_cache_info with operator new

Since there are more and more C++ containers in resolv_cache_info,
it's not safe the code keeps using malloc/free for the struct because
the destructors don't run when free() is called.

Bug: 130686826
Test: cd packages/modules/DnsResolver && atest
Change-Id: Ia4bc47a066b0814d62c7dfaf53325ab9ce890332
parent 6ba673b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment