[Pacemaker] Low: memory leak in cib signon code

Vladislav Bogdanov bubble at hoster-ok.com
Thu Feb 7 07:39:26 EST 2013


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




More information about the Pacemaker mailing list