Commit a662ab01 authored by johan's avatar johan

Fix memory leak

parent 86d8ac3b
......@@ -186,6 +186,8 @@ int bzrtp_getPeerAssociatedSecretsHash(bzrtpContext_t *context, uint8_t peerZID[
xmlFree(nodeContent);
peerNode = peerNode->next;
}
xmlFree(currentZidHex);
currentZidHex=NULL;
break;
}
xmlFree(currentZidHex);
......@@ -286,6 +288,8 @@ int bzrtp_writePeerNode(bzrtpContext_t *context, uint8_t peerZID[12], uint8_t *t
xmlNewTextChild(cur, NULL, (const xmlChar *)tagName, tagContentHex);
nodeUpdated = 1;
}
xmlFree(currentZidHex);
currentZidHex=NULL;
break;
}
xmlFree(currentZidHex);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment