Commit e0955323 authored by Kishen Maloor's avatar Kishen Maloor

Free discovery cbs in oc_obt_shutdown()

Signed-off-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
Change-Id: I92068dec435ee6cc139bf5994aa0afb44e5aa87d
parent 8f37bf98
......@@ -2684,6 +2684,11 @@ oc_obt_shutdown(void)
oc_memb_free(&oc_devices_s, device);
device = (oc_device_t *)oc_list_pop(oc_devices);
}
oc_discovery_cb_t *cb = (oc_discovery_cb_t *)oc_list_pop(oc_discovery_cbs);
while (cb) {
free_discovery_cb(cb);
cb = (oc_discovery_cb_t *)oc_list_pop(oc_discovery_cbs);
}
}
#endif /* OC_SECURITY */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment