prevent updating the sockettype from leaking memory