Skip to content

Commit

Permalink
presence_xml: free uri for http xcap auth
Browse files Browse the repository at this point in the history
(cherry picked from commit eba6c7d)
  • Loading branch information
miconda committed May 5, 2022
1 parent 05e2b31 commit 1d39dc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/presence_xml/xcap_auth.c
Expand Up @@ -521,7 +521,7 @@ int get_rules_doc(

int http_get_rules_doc(str user, str domain, str *rules_doc)
{
str uri;
str uri = STR_NULL;
xcap_doc_sel_t doc_sel;
char *doc = NULL;
xcap_serv_t *xs;
Expand Down Expand Up @@ -559,6 +559,8 @@ int http_get_rules_doc(str user, str domain, str *rules_doc)
rules_doc->s = doc;
rules_doc->len = doc ? strlen(doc) : 0;

pkg_free(uri.s);

return 0;

error:
Expand Down

0 comments on commit 1d39dc5

Please sign in to comment.