Skip to content

Commit

Permalink
[loader] Free some leaked strings in NativeLibrary resolution (#32985)
Browse files Browse the repository at this point in the history
  • Loading branch information
CoffeeFlux committed Mar 2, 2020
1 parent 03b0c44 commit dc62dd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mono/mono/metadata/native-library.c
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,7 @@ ves_icall_System_Runtime_InteropServices_NativeLibrary_GetSymbol (gpointer lib,

leave_nolock:
ERROR_LOCAL_END (local_error);
g_free (symbol_name);

return symbol;
}
Expand Down Expand Up @@ -1495,6 +1496,7 @@ ves_icall_System_Runtime_InteropServices_NativeLibrary_LoadByName (MonoStringHan

leave:
ERROR_LOCAL_END (local_error);
g_free (lib_name);

return handle;
}
Expand Down Expand Up @@ -1528,6 +1530,7 @@ ves_icall_System_Runtime_InteropServices_NativeLibrary_LoadFromPath (MonoStringH

leave:
ERROR_LOCAL_END (local_error);
g_free (lib_path);

return handle;
}
Expand Down

0 comments on commit dc62dd6

Please sign in to comment.