In normal case this would be a memory leak, but since the pointer is not passed as a reference this instruction hasn't any effect, imho.