Update chain_shape.cpp

fixed bad deallocator.