Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / authpipe.c
index 2b7c807..48202af 100644 (file)
@@ -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();