Permalink
Browse files

Fix: xml: Memory leak when free'ing xml documents

  • Loading branch information...
1 parent 28fba1c commit ca8234daf2bbb2d0fd2fb47cdbb6667f892081bb @beekhof committed Mar 3, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/common/xml.c
View
3 lib/common/xml.c
@@ -326,6 +326,9 @@ pcmkDeregisterNode(xmlNodePtr node)
if(p) {
CRM_ASSERT(node->_private != NULL);
CRM_ASSERT(p->check == (long) 0x81726354);
+ if(p->deleted_paths) {
+ g_list_free_full(p->deleted_paths, free);
+ }
free(node->_private);
}
}

0 comments on commit ca8234d

Please sign in to comment.