You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allocation is leaked when jack_activate fails #232
It looks like there are unexplained mem::forget calls all over the library. If the intent is to prevent a malicious user error from panicking in Drop, that should probably be done without causing an unconditional memory leak.
We can probably do less mem::forget though I'd have to read the JACK API again.
If I recall, some of this was intentional. JACK may hold on to some references and it is unclear when it is absolutely clear to reclaim them. For example, perhaps the activate failed but JACK still wants to call the thread_init_callback or something.
Activity
SludgePhD commentedon Jun 8, 2026
It looks like there are unexplained
mem::forgetcalls all over the library. If the intent is to prevent a malicious user error from panicking inDrop, that should probably be done without causing an unconditional memory leak.wmedrano commentedon Jun 8, 2026
We can probably do less mem::forget though I'd have to read the JACK API again.
If I recall, some of this was intentional. JACK may hold on to some references and it is unclear when it is absolutely clear to reclaim them. For example, perhaps the activate failed but JACK still wants to call the thread_init_callback or something.