is memory getting leaked?
<p>i have method which takes normal pointer to string  </p>

<pre><code>void parseResponseData(char* response); 
</code></pre>

<p>and i am calling this as below  </p>

<pre><code>parseResponseData((char *) response.c_str());  
</code></pre>

<p>response is std::string type. My assumption is that it may not be the best way for converting const char* to char* and secondly i may be leaking memory in this case? Need expert opinions on that? especially i am looking if am leaking memory on this.  </p>
