fix SSRL issue

and probably a memory leak while we're at it