<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Fri May 24 00:28:44 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.couchbase.com/issues/si/jira.issueviews:issue-xml/CCBC-65/CCBC-65.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Couchbase</title>
    <link>http://www.couchbase.com/issues</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.4</version>
        <build-number>845</build-number>
        <build-date>26-12-2012</build-date>
    </build-info>

<item>
            <title>[CCBC-65] Memory leak in libcouchbase_create / libcouchbase_destroy (POC and patch included)</title>
                <link>http://www.couchbase.com/issues/browse/CCBC-65</link>
                <project id="10070" key="CCBC">Couchbase C client library libcouchbase</project>
                        <description>When the client calls libcouchbase_create and then later calls libcouchbase_destroy, some memory is leaked. For a client with many threads that open and close couchbase sessions, this will lead to memory exhaustion. The leak is caused by the use of strdup() in setup_boostrap_hosts(). These duplicated strings are not free&amp;#39;d in libcouchbase_destroy. The leak can be seen by using valgrind.&lt;br/&gt;
&lt;br/&gt;
I have attached a proof of concept, and a patch with a proposed fix.&lt;br/&gt;
&lt;br/&gt;
I have only tested on 1.0.2, but other versions may be affected.</description>
                <environment>Linux Centos</environment>
            <key id="17080">CCBC-65</key>
            <summary>Memory leak in libcouchbase_create / libcouchbase_destroy (POC and patch included)</summary>
                <type id="1" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/critical.png">Critical</priority>
                    <status id="6" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10011">Public</security>
                        <assignee username="avsej">Sergey Avseyev</assignee>
                                <reporter username="jamesoc">James</reporter>
                        <labels>
                    </labels>
                <created>Tue, 15 May 2012 12:49:23 -0500</created>
                <updated>Tue, 13 Nov 2012 04:21:34 -0600</updated>
                    <resolved>Tue, 15 May 2012 16:29:07 -0500</resolved>
                            <version>1.0.2</version>
                                <fixVersion>1.0.4</fixVersion>
                                <component>library</component>
                                <votes>0</votes>
                        <watches>0</watches>
                          <timeoriginalestimate seconds="14400">4h</timeoriginalestimate>
                    <timeestimate seconds="14400">4h</timeestimate>
                                  <comments>
                    <comment id="27280" author="avsej" created="Tue, 15 May 2012 16:13:26 -0500"  >Good job. Thanks. Your patch imported into review system &lt;a href=&quot;http://review.couchbase.org/16032&quot;&gt;http://review.couchbase.org/16032&lt;/a&gt;</comment>
                    <comment id="27283" author="avsej" created="Tue, 15 May 2012 16:29:07 -0500"  >Merged. Will be accessible in next release or now on the github &lt;a href=&quot;https://github.com/couchbase/libcouchbase&quot;&gt;https://github.com/couchbase/libcouchbase&lt;/a&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="13228" name="leak.c" size="921" author="jamesoc" created="Tue, 15 May 2012 12:49:23 -0500" />
                    <attachment id="13229" name="memory_leak.patch" size="1421" author="jamesoc" created="Tue, 15 May 2012 12:49:23 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                                                                                                                                                    <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>11008</customfieldvalue>
                </customfieldvalues>
            </customfield>
                                                                                    <customfield id="customfield_10181" key="com.atlassian.jira.ext.charting:timeinstatus">
                <customfieldname>Time In Status</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                </customfields>
    </item>
</channel>
</rss>