Skip to content

Commit

Permalink
lost: DOM level count fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wkampich committed Mar 30, 2021
1 parent ffb0a86 commit 2f48d0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/lost/utilities.c
Expand Up @@ -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 {
Expand Down

0 comments on commit 2f48d0c

Please sign in to comment.