Files
mars-tinyldap/freepal.c
2002-01-14 23:22:28 +00:00

16 lines
302 B
C

#include <stdlib.h>
#include "ldap.h"
void freepal(struct PartialAttributeList* l) {
while (l) {
struct PartialAttributeList* x=l->next;
while (l->values) {
struct AttributeDescriptionList* y=l->values->next;
free(l->values);
l->values=y;
}
free(l);
l=x;
}
}