MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / fake_dlclose

Function fake_dlclose

Bcore/src/main/cpp/utils/fake_dlfcn.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33};
34
35int fake_dlclose(void *handle) {
36 if (handle) {
37 struct ctx *ctx = (struct ctx *) handle;
38 if (ctx->dynsym) free(ctx->dynsym); /* we're saving dynsym and dynstr */
39 if (ctx->dynstr) free(ctx->dynstr); /* from library file just in case */
40 free(ctx);
41 }
42 return 0;
43}
44
45void *fake_dlopen(const char *libpath, int flags) {
46 FILE *maps;

Callers 1

fake_dlopenFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected