small fix
[apps/madmutt.git] / imap / auth.c
index 23473e1..2e6b8ca 100644 (file)
@@ -15,8 +15,9 @@
 # include "config.h"
 #endif
 
-#include "lib/mem.h"
-#include "lib/intl.h"
+#include <lib-lib/mem.h>
+
+#include <lib-lib/macros.h>
 #include "lib/debug.h"
 
 #include "mutt.h"
@@ -39,7 +40,7 @@ static imap_auth_t imap_authenticators[] = {
 #endif
   {imap_auth_login, "login"},
 
-  {NULL}
+  {NULL, NULL}
 };
 
 /* imap_authenticate: Attempt to authenticate using either user-specified
@@ -71,7 +72,7 @@ int imap_authenticate (IMAP_DATA * idata)
             !ascii_strcasecmp (authenticator->method, method))
           if ((r = authenticator->authenticate (idata, method)) !=
               IMAP_AUTH_UNAVAIL) {
-            mem_free (&methods);
+            p_delete(&methods);
             return r;
           }
 
@@ -79,7 +80,7 @@ int imap_authenticate (IMAP_DATA * idata)
       }
     }
 
-    mem_free (&methods);
+    p_delete(&methods);
   }
   else {
     /* Fall back to default: any authenticator */