Free memory when it is no more used

Memory leak happen when Android data framework updates identical DNS
information to netd.

Bug: 115595601
Test: netd_unit_test, netd_integration_test
Change-Id: I97f22c131e823a03258b09311f4ef9d63d316ffd
1 file changed