Skip to content

Commit 99c5d4a

Browse files
committed
Fix premature free dll_path
1 parent c355112 commit 99c5d4a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bootstrap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,12 @@ void mono_doorstop_bootstrap(void *mono_domain) {
7878
config.target_assembly, s);
7979
return;
8080
}
81-
free(dll_path);
8281

8382
LOG("Image opened; loading included assembly");
8483

8584
s = MONO_IMAGE_OK;
8685
void *assembly = mono.assembly_load_from_full(image, dll_path, &s, FALSE);
87-
86+
free(dll_path);
8887
if (s != MONO_IMAGE_OK) {
8988
LOG("Failed to load assembly: %s. Got result: %d\n",
9089
config.target_assembly, s);

0 commit comments

Comments
 (0)