Skip to content

Commit

Permalink
dyld: fix memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Jul 29, 2023
1 parent 45751e1 commit b1defc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libdyld/dyld_dlfcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ dyld_dlfcn_load_object(struct exec_context *ctx, struct host_instance *hi,
if (host_ret == 0) {
HOST_FUNC_RESULT_SET(ft, results, 0, i32, user_ret);
}
HOST_FUNC_FREE_CONVERTED_PARAMS();
return host_ret;
}

Expand Down Expand Up @@ -195,6 +196,7 @@ dyld_dlfcn_resolve_symbol(struct exec_context *ctx, struct host_instance *hi,
if (host_ret == 0) {
HOST_FUNC_RESULT_SET(ft, results, 0, i32, user_ret);
}
HOST_FUNC_FREE_CONVERTED_PARAMS();
return host_ret;
}

Expand Down

0 comments on commit b1defc7

Please sign in to comment.