coverity#1209779 & coverity#1209780 Resource leak

Have the testBasics() function clean up after itself - delete p2 and
p4 at the end of the function.

Change-Id: Ib0c732e1962da94fde0e0da307f610dd36f49eda
coverity#1209778 & coverity#1209777 Resource leak

Have testBasics_FindPtr() cleanup after itself by deleting p2 and p4.

Change-Id: I88b5efd25941d135b743f759a8f27c1cdbcb43c0