diff options
Diffstat (limited to 'examples/execute-string.c')
-rw-r--r-- | examples/execute-string.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/execute-string.c b/examples/execute-string.c index fe5e8e9..edfab8b 100644 --- a/examples/execute-string.c +++ b/examples/execute-string.c @@ -71,6 +71,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); @@ -127,5 +130,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; } |