diff options
Diffstat (limited to 'examples/exception-handler.c')
-rw-r--r-- | examples/exception-handler.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/exception-handler.c b/examples/exception-handler.c index 324a350..290518a 100644 --- a/examples/exception-handler.c +++ b/examples/exception-handler.c @@ -74,6 +74,9 @@ int main(int argc, char **argv) return 1; } + /* initialize default module search path */ + uc_search_path_init(&config.module_search_path); + /* initialize VM context */ uc_vm_t vm = { 0 }; uc_vm_init(&vm, &config); @@ -96,5 +99,8 @@ int main(int argc, char **argv) /* free VM context */ uc_vm_free(&vm); + /* free search module path vector */ + uc_search_path_free(&config.module_search_path); + return exit_code; } |