Module: kamailio
Branch: master
Commit: 2f48d0cdc84eaa583a2f2b6837e6251e62abc901
URL:
https://github.com/kamailio/kamailio/commit/2f48d0cdc84eaa583a2f2b6837e6251…
Author: Wolfgang Kampichler <dev(a)kampichler.info>
Committer: Wolfgang Kampichler <dev(a)kampichler.info>
Date: 2021-03-30T21:15:56+02:00
lost: DOM level count fix
---
Modified: src/modules/lost/utilities.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2f48d0cdc84eaa583a2f2b6837e6251…
Patch:
https://github.com/kamailio/kamailio/commit/2f48d0cdc84eaa583a2f2b6837e6251…
---
diff --git a/src/modules/lost/utilities.c b/src/modules/lost/utilities.c
index 7aef5ea9d3..06a1727d74 100644
--- a/src/modules/lost/utilities.c
+++ b/src/modules/lost/utilities.c
@@ -1234,8 +1234,11 @@ int lost_xpath_location(xmlDocPtr doc, char *path, p_loc_t loc)
} else {
LM_WARN("xpath location-info element(%d) ignored\n", i + 1);
}
+ /* clean up */
xmlFree(xmlbuff);
xmlFreeDoc(new);
+ /* reset level count */
+ nok = -1;
}
}
} else {