diff options
author | Daniel Wagner <wagi@monom.org> | 2018-08-26 10:31:03 +0200 |
---|---|---|
committer | Daniel Wagner <wagi@monom.org> | 2018-08-29 20:00:15 +0200 |
commit | 027e5f8d4c70f6ca66ee2be92606987c9d72d71c (patch) | |
tree | ec80d997966e96c9ec2747ae8de8689d8b8bef7e /include/acd.h | |
parent | de020cc7e8ad11f81c879f60f22348f8a7798d4c (diff) | |
download | connman-027e5f8d4c70f6ca66ee2be92606987c9d72d71c.tar.gz |
acd: Add acd_host_free() deallocator
Valgrind reports that we do not free acd->interface:
==13496== 5 bytes in 1 blocks are definitely lost in loss record 9 of 194
==13496== at 0x4C2CB6B: malloc (vg_replace_malloc.c:299)
==13496== by 0x4E89378: g_malloc (gmem.c:94)
==13496== by 0x4EA294E: g_strdup (gstrfuncs.c:363)
==13496== by 0x461BD4: connman_inet_ifname (inet.c:274)
==13496== by 0x48E903: acd_host_new (acd.c:129)
==13496== by 0x43F1DF: start_acd (network.c:384)
==13496== by 0x43F3A2: dhcp_success (network.c:436)
==13496== by 0x43F4BD: dhcp_callback (network.c:487)
==13496== by 0x468A34: dhcp_valid (dhcp.c:176)
==13496== by 0x46975B: lease_available_cb (dhcp.c:519)
==13496== by 0x415E61: listener_event (client.c:2443)
==13496== by 0x4E83B96: g_main_dispatch (gmain.c:3142)
==13496== by 0x4E83B96: g_main_context_dispatch (gmain.c:3795)
Diffstat (limited to 'include/acd.h')
-rw-r--r-- | include/acd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/acd.h b/include/acd.h index 0f9468d3..0d777963 100644 --- a/include/acd.h +++ b/include/acd.h @@ -36,6 +36,7 @@ extern "C" { struct acd_host; struct acd_host *acd_host_new(int ifindex, const char* path); +void acd_host_free(struct acd_host *acd); int acd_host_start(struct acd_host *acd, uint32_t ip); void acd_host_stop(struct acd_host *acd); |