Merge branch 'debian'
[hcoop/debian/courier-authlib.git] / authpipe.c
index 2b7c807..800a9bc 100644 (file)
@@ -15,7 +15,7 @@
 #include       "numlib/numlib.h"
 
 #include       "courierauth.h"
-#include       "authstaticlist.h"
+#include       "courierauthstaticlist.h"
 #include       "courierauthdebug.h"
 
 #include       "authpipelib.h"
@@ -62,7 +62,10 @@ int auth_pipe(const char *service, const char *authtype, char *authdata,
        strcat(buf, authdata);
        
        if (getPipe(&rdfd, &wrfd))
+       {
+               free(buf);
                return 1;
+       }
        rc=_authdaemondo(wrfd, rdfd, buf, callback_func, callback_arg);
        free(buf);
        if (rc > 0) closePipe();