|
sc_default_global_context = new sc_simcontext; |
sc_default_global_context was assigned a pointer by creating a sc_simcontext on the heap, but in the code repo, I could not find anywhere this piece of memory is freed. Is it a memory leak? Or is it intentional to keep this sc_simcontext? If so, what is the point of keeping it even after sc_simcontext class is destroyed?
systemc/src/sysc/kernel/sc_simcontext.h
Line 469 in 3d500fe
sc_default_global_context was assigned a pointer by creating a sc_simcontext on the heap, but in the code repo, I could not find anywhere this piece of memory is freed. Is it a memory leak? Or is it intentional to keep this sc_simcontext? If so, what is the point of keeping it even after sc_simcontext class is destroyed?