[Pacemaker] Low: memory leak in cib signon code
Andrew Beekhof
andrew at beekhof.net
Fri Feb 8 01:02:14 UTC 2013
Done. Thanks!
On Thu, Feb 7, 2013 at 11:39 PM, Vladislav Bogdanov
<bubble at hoster-ok.com> wrote:
> Hi,
>
> I use connection to CIB in a daemon application, and it seems like
> following patch is required against cib_native_signon_raw() to not leak
> memory on reconnects.
>
> --- a/lib/cib/cib_native.c 2013-02-07 06:26:43.000000000 +0000
> +++ b/lib/cib/cib_native.c 2013-02-07 12:33:32.501257239 +0000
> @@ -254,6 +254,7 @@ cib_native_signon_raw(cib_t * cib, const
> }
> }
>
> + free_xml(reply);
> } else {
> rc = -ECOMM;
> }
> ---
>
> Vladislav
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
More information about the Pacemaker
mailing list