summaryrefslogtreecommitdiffstats
path: root/free_ldapadl.c
diff options
context:
space:
mode:
Diffstat (limited to 'free_ldapadl.c')
-rw-r--r--free_ldapadl.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/free_ldapadl.c b/free_ldapadl.c
new file mode 100644
index 0000000..c8338a3
--- /dev/null
+++ b/free_ldapadl.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+#include "ldap.h"
+
+void free_ldapadl(struct AttributeDescriptionList* a) {
+ while (a) {
+ struct AttributeDescriptionList* tmp=a->next;
+ free(a); a=tmp;
+ }
+}
+