Browse Source

presence_dialoginfo : fix memory leak

missing xmlFreeDoc from commit b6b7de8832e4ab22ef2c00ebb2c1e1b6ced9ff35
lazedo 9 years ago
parent
commit
adcad3445b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/presence_dialoginfo/notify_body.c

+ 1 - 1
modules/presence_dialoginfo/notify_body.c

@@ -604,7 +604,7 @@ str *dlginfo_body_setversion(subs_t *subs, str *body) {
 	}
 	pkg_free(aux_body->s);
         xmlDocDumpFormatMemory(doc,(xmlChar**)(void*)&aux_body->s, &aux_body->len, 1);
-
+	xmlFreeDoc(doc);
         xmlCleanupParser();
         xmlMemoryDump();