Void ClearStack (SqStack & amp; S)
{
S.t op=S.b ase;
}
So you can empty, that have been used the space without a free? I remember the malloc is the heap space, space on the heap is to manually released
CodePudding user response:
Must be to free, just empty the stack here, no recovery of memory, may lead to memory leaks
CodePudding user response: