Skip to content

Commit

Permalink
Fixed: segv on exit
Browse files Browse the repository at this point in the history
Test: rm openconfig-interface
  • Loading branch information
olofhagsand committed Jan 10, 2024
1 parent 0ec1e0a commit d5a8d6b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 210 deletions.
2 changes: 1 addition & 1 deletion apps/backend/backend_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
1 change: 1 addition & 0 deletions lib/src/clixon_datastore_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,7 @@ text_modify_top(clixon_handle h,
* cbret contains netconf error message
* @endcode
* @note if xret is non-null, it may contain error message
* @note x1 may change as a side-effect (eg operation attributes are stripped)
*/
int
xmldb_put(clixon_handle h,
Expand Down
209 changes: 0 additions & 209 deletions test/test_openconfig_interfaces.sh

This file was deleted.

0 comments on commit d5a8d6b

Please sign in to comment.