Fix for memory leak CID 18296