summaryrefslogblamecommitdiffstats
path: root/freepal.c
blob: 9992a09b1bce6d0117431f9c7bb934d343a58620 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
  }
}