Just use delete. It will delete memory. If you are not sure, you can use smart pointers, and if you want to check if they are working as they should, check profiler.
Mind that memory leaks are mainly to be considered while program runs, because after program quits, OS (usually) will clear memory you used.