Skip to content

Commit baf0645

Browse files
committed
presence: remove deprecated xmlMemoryDump()
(cherry picked from commit 7ea25d9)
1 parent 205a9d7 commit baf0645

9 files changed

Lines changed: 0 additions & 30 deletions

File tree

modules/presence/notify.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2439,8 +2439,6 @@ str* create_winfo_xml(watcher_t* watchers, char* version,
24392439

24402440
xmlCleanupParser();
24412441

2442-
xmlMemoryDump();
2443-
24442442
return body;
24452443

24462444
error:

modules/presence/presentity.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ int get_dialog_state(str body, int *dialog_state)
351351
xmlFree(state);
352352
xmlFreeDoc(doc);
353353
xmlCleanupParser();
354-
xmlMemoryDump();
355354

356355
if(i == DLG_STATES_NO)
357356
{
@@ -1610,7 +1609,6 @@ str* xml_dialog_gen_presence(str* pres_uri, int dlg_state)
16101609
if(pres_doc)
16111610
xmlFreeDoc(pres_doc);
16121611
xmlCleanupParser();
1613-
xmlMemoryDump();
16141612

16151613
return dialog_body;
16161614
}
@@ -1655,7 +1653,6 @@ str* xml_dialog2presence(str* pres_uri, str* body)
16551653
xmlFree(state);
16561654
xmlFreeDoc(dlg_doc);
16571655
xmlCleanupParser();
1658-
xmlMemoryDump();
16591656

16601657
if(i == DLG_STATES_NO)
16611658
{
@@ -1752,8 +1749,6 @@ str* build_offline_presence(str* pres_uri)
17521749
if(pres_doc)
17531750
xmlFreeDoc(pres_doc);
17541751
xmlCleanupParser();
1755-
xmlMemoryDump();
17561752

17571753
return body;
17581754
}
1759-

modules/presence_dialoginfo/notify_body.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ str* dlginfo_agg_nbody(str* pres_user, str* pres_domain, str** body_array, int n
9999
}
100100

101101
xmlCleanupParser();
102-
xmlMemoryDump();
103102

104103
if (n_body== NULL)
105104
n_body = _build_empty_dialoginfo(pres_uri_char, NULL);
@@ -274,7 +273,6 @@ str* agregate_xmls(str* pres_user, str* pres_domain, str** body_array, int n, in
274273
pkg_free(xml_array);
275274

276275
xmlCleanupParser();
277-
xmlMemoryDump();
278276

279277
return body;
280278

@@ -471,7 +469,6 @@ static str* _build_empty_dialoginfo(const char* pres_uri_char, str* extra_hdrs)
471469

472470
xmlFreeDoc(doc);
473471
xmlCleanupParser();
474-
xmlMemoryDump();
475472

476473
return nbody;
477474
error:

modules/presence_reginfo/notify_body.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ str *reginfo_agg_nbody(str *pres_user, str *pres_domain, str **body_array,
6969
}
7070

7171
xmlCleanupParser();
72-
xmlMemoryDump();
7372

7473
return n_body;
7574
}
@@ -206,7 +205,6 @@ str *aggregate_xmls(str *pres_user, str *pres_domain, str **body_array, int n)
206205
pkg_free(xml_array);
207206

208207
xmlCleanupParser();
209-
xmlMemoryDump();
210208

211209
return body;
212210

modules/presence_xml/add_events.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,11 @@ int xml_publ_handl(struct sip_msg* msg, int* sent_reply)
7272
}
7373
xmlFreeDoc(doc);
7474
xmlCleanupParser();
75-
xmlMemoryDump();
7675
return 1;
7776

7877
error:
7978
xmlFreeDoc(doc);
8079
xmlCleanupParser();
81-
xmlMemoryDump();
8280
return -1;
8381

8482
}
@@ -124,14 +122,12 @@ str* bla_set_version(subs_t* subs, str* body)
124122

125123
xmlFreeDoc(doc);
126124

127-
xmlMemoryDump();
128125
xmlCleanupParser();
129126
return new_body;
130127

131128
error:
132129
if(doc)
133130
xmlFreeDoc(doc);
134-
xmlMemoryDump();
135131
xmlCleanupParser();
136132
return 0;
137133
}
@@ -210,4 +206,3 @@ int xml_add_events(void)
210206
return 0;
211207
}
212208

213-

modules/pua/add_events.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ int pres_process_body(publ_info_t* publ, str** fin_body, int ver, str* tuple)
159159
doc= NULL;
160160

161161
*fin_body= body;
162-
xmlMemoryDump();
163162
xmlCleanupParser();
164163
return 1;
165164

@@ -171,4 +170,3 @@ int pres_process_body(publ_info_t* publ, str** fin_body, int ver, str* tuple)
171170
return -1;
172171
}
173172

174-

modules/pua_dialoginfo/pua_dialoginfo.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,6 @@ int dialoginfo_process_body(struct publ_info* publ, str** fin_body,
653653
if (*fin_body == NULL)
654654
LM_DBG("NULL fin_body\n");
655655

656-
xmlMemoryDump();
657656
xmlCleanupParser();
658657
return 1;
659658

@@ -662,7 +661,6 @@ int dialoginfo_process_body(struct publ_info* publ, str** fin_body,
662661
xmlFreeDoc(doc);
663662
if (body)
664663
pkg_free(body);
665-
xmlMemoryDump();
666664
xmlCleanupParser();
667665
return -1;
668666
}
@@ -1200,4 +1198,3 @@ int set_mute_branch(struct sip_msg* msg, str* parties)
12001198
return 1;
12011199
}
12021200

1203-

modules/pua_xmpp/simple2xmpp.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,6 @@ int build_xmpp_content(str* to_uri, str* from_uri, str* body, str* id,
491491

492492
xmlBufferFree(buffer);
493493
xmlCleanupParser();
494-
xmlMemoryDump();
495494

496495
if(sip_doc)
497496
xmlFreeDoc(sip_doc);
@@ -509,7 +508,6 @@ int build_xmpp_content(str* to_uri, str* from_uri, str* body, str* id,
509508
if(buffer)
510509
xmlBufferFree(buffer);
511510
xmlCleanupParser();
512-
xmlMemoryDump();
513511

514512
return -1;
515513

@@ -637,7 +635,6 @@ int winfo2xmpp(str* to_uri, str* body, str* id)
637635

638636
xmlFreeDoc(notify_doc);
639637
xmlCleanupParser();
640-
xmlMemoryDump();
641638
return 0;
642639

643640
error:
@@ -651,7 +648,6 @@ int winfo2xmpp(str* to_uri, str* body, str* id)
651648
if(buffer)
652649
xmlBufferFree(buffer);
653650
xmlCleanupParser();
654-
xmlMemoryDump();
655651

656652
return -1;
657653
}
@@ -873,4 +869,3 @@ int Sipreply2Xmpp(ua_pres_t* hentity, struct sip_msg * msg)
873869
return -1;
874870

875871
}
876-

modules/pua_xmpp/xmpp2simple.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,13 @@ void pres_Xmpp2Sip(char *msg, int type, void *param)
127127

128128
xmlFreeDoc(doc);
129129
xmlCleanupParser();
130-
xmlMemoryDump();
131130
return ;
132131

133132
error:
134133

135134
if(doc)
136135
xmlFreeDoc(doc);
137136
xmlCleanupParser();
138-
xmlMemoryDump();
139137

140138
return ;
141139
}
@@ -501,4 +499,3 @@ int presence_subscribe(xmlNodePtr pres_node, int expires,int flag)
501499
error:
502500
return -1;
503501
}
504-

0 commit comments

Comments
 (0)