Quote Originally Posted by suraani
Actually this function is defined in CTIOS libraries.
Right, so you are caught between a standard library implementation and a domain specific library. A quick search brings up STLport string 'leaking'. If the suggestion does not solve your problem then you might want to either switch to a different standard library implementation, or request for help from the STLport implementers.