Skip to content

Commit 19943b8

Browse files
committed
nullify pointer when structure is deleted so next pass will allocate the new struct
1 parent a206233 commit 19943b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

offload/plugins-nextgen/common/src/EmissaryFortrt.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ extern "C" emis_return_t EmissaryFortrt(char *data, emisArgBuf_t *ab) {
402402
_max_num_threads = 0;
403403
_max_num_teams = 0;
404404
delete _deferred_fns_ptr;
405+
_deferred_fns_ptr=nullptr;
405406
} // end run_deferred_functions
406407

407408
return return_value;

0 commit comments

Comments
 (0)