Manage dynamic memory

If you use the C++ new operator to allocate dynamic memory for variables, make sure that you call the delete operator to release the memory as part of your program cleanup routines. This practice also applies if you use the malloc/calloc functions; make sure that you call the free function to release the memory. If you do not release the dynamic memory, the Db2® system can experience performance degradations because swap/memory is consumed but not released by the UDXs.