diff options
Diffstat (limited to 'freepal.c')
-rw-r--r-- | freepal.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/freepal.c b/freepal.c new file mode 100644 index 0000000..9992a09 --- /dev/null +++ b/freepal.c @@ -0,0 +1,15 @@ +#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; + } +} |