What Your Mother Never Told You About Resource Deallocation