Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Memory leak in mini_get_rgctx_entry_slot -> lookup_or_register #21035

@Therzok

Description

@Therzok

Steps to Reproduce

  1. index = register_info (klass, type_argc, data, info_type);
  2. if the data is found in the lookup aka it is registered, the does nothing to ensure it frees data.
  3. data is always newly allocated before passed to the method

Current Behavior

Leak

Expected Behavior

No leak

On which platforms did you notice this

[*] macOS
[ ] Linux
[ ] Windows

Version Used:

Mono JIT compiler version 6.12.0.125 (2020-02/8c552e98bd6 Mon Mar 8 13:06:52 EST 2021)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS:
SIGSEGV: altstack
Notification: kqueue
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(610)
Suspend: hybrid
GC: sgen (concurrent by default)

Stacktrace

Please paste the stack trace here if available.

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions