]> git.sur5r.net Git - openldap/blobdiff - servers/ldapd/abandon.c
Fix memory leak if duplicate attr name in at_insert
[openldap] / servers / ldapd / abandon.c
index 3e51192590e8f7fe6f21247c44c486bf1669a9d5..0488593a2fd3c3d533dfb9734e93afc12e1daf2e 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenLDAP$ */
 /*
  * Copyright (c) 1990 Regents of the University of Michigan.
  * All rights reserved.
  * is provided ``as is'' without express or implied warranty.
  */
 
+#include "portable.h"
+
 #include <stdio.h>
+
+#include <ac/socket.h>
+
 #include <quipu/commonarg.h>
 #include <quipu/attrvalue.h>
 #include <quipu/ds_error.h>
 #include <quipu/abandon.h>
 #include <quipu/dap2.h>
 #include <quipu/dua.h>
-#include <sys/types.h>
-#include <sys/socket.h>
+
 #include "lber.h"
 #include "ldap.h"
 #include "common.h"
 
+int
 do_abandon(
     struct conn        *dsaconn,
     BerElement *ber,