Commit ad1a8079 authored by David Lawrence's avatar David Lawrence
Browse files

only do omapi_listener_shutdown if ns_g_omapimgr != NULL

parent f5facdfc
...@@ -251,8 +251,10 @@ destroy_managers(void) { ...@@ -251,8 +251,10 @@ destroy_managers(void) {
isc_timermgr_destroy(&ns_g_timermgr); isc_timermgr_destroy(&ns_g_timermgr);
isc_socketmgr_destroy(&ns_g_socketmgr); isc_socketmgr_destroy(&ns_g_socketmgr);
if (ns_g_omapimgr != NULL) {
omapi_listener_shutdown(ns_g_omapimgr); omapi_listener_shutdown(ns_g_omapimgr);
omapi_object_dereference(&ns_g_omapimgr); omapi_object_dereference(&ns_g_omapimgr);
}
} }
static void static void
......
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