Fix coverity #45494
Fixing more memory leaks for coverity