Fixed: segv on exit

Test: rm openconfig-interface
This commit is contained in:
Olof hagsand 2024-01-10 20:10:38 +01:00
parent 0ec1e0a686
commit d5a8d6b6e1
3 changed files with 2 additions and 210 deletions

View file

@ -141,11 +141,11 @@ backend_terminate(clixon_handle h)
unlink(pidfile);
if (sockfamily==AF_UNIX && lstat(sockpath, &st) == 0)
unlink(sockpath);
backend_handle_exit(h); /* Also deletes streams. Cannot use h after this. */
clixon_event_exit();
clixon_debug(CLIXON_DBG_CLIENT, "%s done", __FUNCTION__);
clixon_err_exit();
clixon_log_exit();
backend_handle_exit(h); /* Also deletes streams. Cannot use h after this. */
return 0;
}