qssb_free_policy(): free path policies

Cette révision appartient à :
Albert S. 2021-05-15 21:26:28 +02:00
Parent ad9c391e3f
révision 946492c28e
1 fichiers modifiés avec 7 ajouts et 0 suppressions

7
qssb.h
Voir le fichier

@ -415,6 +415,13 @@ int qssb_end_policy(struct qssb_policy *ctxt)
*/
void qssb_free_policy(struct qssb_policy *ctxt)
{
struct qssb_path_policy *current = ctxt->path_policies;
while(current)
{
struct qssb_path_policy *tmp = current;
current = current->next;
free(tmp);
}
free(ctxt);
}