Update 082.cpp

deallocate memory