From 32d9cc239c8eb036ad3d51d8a56518e23367d5be Mon Sep 17 00:00:00 2001
From: Kurt Zeilenga <kurt@openldap.org>
Date: Tue, 22 Dec 1998 18:42:02 +0000
Subject: [PATCH] Add ldap_memfree() to the mix.

---
 libraries/libldap/free.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/libraries/libldap/free.c b/libraries/libldap/free.c
index ebf2d623c5..666e2d6842 100644
--- a/libraries/libldap/free.c
+++ b/libraries/libldap/free.c
@@ -21,6 +21,17 @@ static char copyright[] = "@(#) Copyright (c) 1994 The Regents of the University
 
 #include "ldap-int.h"
 
+/*
+ * C-API deallocator
+ */
+void
+ldap_memfree( void *p )
+{
+	if(p != NULL) {
+		free( p );
+	}
+}
+
 void
 ldap_getfilter_free( LDAPFiltDesc *lfdp )
 {
-- 
GitLab