Skip to content

Commit

Permalink
Local pointer isn't freed...
Browse files Browse the repository at this point in the history
  • Loading branch information
d3x0r committed Aug 27, 2024
1 parent 56996dd commit 252b765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deadstart/deadstart_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,12 +534,12 @@ void InvokeExits( void )
// just before all memory goes away
// global memory goes away (including mine) so deadstart_local_data is invalidated.
#ifndef __STATIC_GLOBALS__
struct deadstart_local_data_ *local_pointer = (struct deadstart_local_data_*)(((uintptr_t)deadstart_local_data)-sizeof(PLIST));
//struct deadstart_local_data_ *local_pointer = (struct deadstart_local_data_*)(((uintptr_t)deadstart_local_data)-sizeof(PLIST));
#endif
PSHUTDOWN_PROC proclist = proc;
// link list to myself..
#ifndef __STATIC_GLOBALS__
Hold( local_pointer );
//Hold( local_pointer );
#endif
proc->me = &proclist;
while( ( proc = proclist ) )
Expand Down

0 comments on commit 252b765

Please sign in to comment.