Module: kamailio
Branch: master
Commit: b4b09ab828fe177e2d3186528b8457252efa9324
URL: 
https://github.com/kamailio/kamailio/commit/b4b09ab828fe177e2d3186528b8457252efa9324

Author: Victor Seva <[email protected]>
Committer: Victor Seva <[email protected]>
Date: 2025-10-06T10:32:58+02:00

presence: remove deprecated xmlMemoryDump() calls

related #4411

---

Modified: src/modules/presence/notify.c
Modified: src/modules/presence/publish.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/b4b09ab828fe177e2d3186528b8457252efa9324.diff
Patch: 
https://github.com/kamailio/kamailio/commit/b4b09ab828fe177e2d3186528b8457252efa9324.patch

---

diff --git a/src/modules/presence/notify.c b/src/modules/presence/notify.c
index da860b454ad..55622818a12 100644
--- a/src/modules/presence/notify.c
+++ b/src/modules/presence/notify.c
@@ -189,7 +189,7 @@ int build_str_hdr(subs_t *subs, int is_body, str *hdr)
                        + (subs->reason.len > expires.len ? subs->reason.len : 
expires.len)
                        + CRLF_LEN
                        + (is_body ? (14 /*Content-Type: */ + 
subs->event->content_type.len
-                                                 + CRLF_LEN)
+                                                                + CRLF_LEN)
                                           : 0)
                        + 1;
 
@@ -2150,8 +2150,6 @@ str *create_winfo_xml(watcher_t *watchers, char *version, 
str resource,
 
        xmlCleanupParser();
 
-       xmlMemoryDump();
-
        return body;
 
 error:
diff --git a/src/modules/presence/publish.c b/src/modules/presence/publish.c
index 5f9a0333a58..3b629d682af 100644
--- a/src/modules/presence/publish.c
+++ b/src/modules/presence/publish.c
@@ -671,12 +671,10 @@ int update_hard_presentity(
                        LM_ERR("bad body format\n");
                        xmlFreeDoc(doc);
                        xmlCleanupParser();
-                       xmlMemoryDump();
                        goto done;
                }
                xmlFreeDoc(doc);
                xmlCleanupParser();
-               xmlMemoryDump();
 
                new_t = 1;
        } else {

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to