Don't worry, there is no memory allocated. The stack is just a continuous memory area that is reserved for passing parameters. Setting the stack pointer back to its correct position is the task of the calling function when using a __cdecl function declaration (which is the default).