qssb_free_policy(): free path policies
This commit is contained in:
父節點
ad9c391e3f
當前提交
946492c28e
7
qssb.h
7
qssb.h
@ -415,6 +415,13 @@ int qssb_end_policy(struct qssb_policy *ctxt)
|
|||||||
*/
|
*/
|
||||||
void qssb_free_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);
|
free(ctxt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user