Commit edbc0d19 edbc0d19b76ce8f3bfaf08999d1026923b57713e by Sergey Poznyakoff

(mu_auth_data_destroy): New function

1 parent d6ea036a
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
Copyright (C) 2002, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -108,6 +108,16 @@ mu_auth_data_free (struct mu_auth_data *ptr)
free (ptr);
}
void
mu_auth_data_destroy (struct mu_auth_data **pptr)
{
if (pptr)
{
mu_auth_data_free (*pptr);
*pptr = NULL;
}
}
/* Generic functions */
struct auth_stack_entry {
......