Page 5 of 7
Delete Request
This one is also fairly strait forward. It prints a message to the user, grabs input, validates that there is indeed something to free at that index in the global array, and then proceeds to free it. Note that after freeing, it does zero out the location in the array, so they're not allowing a use after free or double free here.