setstropt_userpwd() was calling setstropt() in commit fddb7b44 to set each of the login details which would duplicate the strings and subsequently cause a memory leak.