Commit edbc0d19 edbc0d19b76ce8f3bfaf08999d1026923b57713e by Sergey Poznyakoff

(mu_auth_data_destroy): New function

1 parent d6ea036a
1 /* GNU Mailutils -- a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 2002, 2004, 2005, 2006 Free Software Foundation, Inc. 2 Copyright (C) 2002, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
3 3
4 This library is free software; you can redistribute it and/or 4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public 5 modify it under the terms of the GNU Lesser General Public
...@@ -108,6 +108,16 @@ mu_auth_data_free (struct mu_auth_data *ptr) ...@@ -108,6 +108,16 @@ mu_auth_data_free (struct mu_auth_data *ptr)
108 free (ptr); 108 free (ptr);
109 } 109 }
110 110
111 void
112 mu_auth_data_destroy (struct mu_auth_data **pptr)
113 {
114 if (pptr)
115 {
116 mu_auth_data_free (*pptr);
117 *pptr = NULL;
118 }
119 }
120
111 /* Generic functions */ 121 /* Generic functions */
112 122
113 struct auth_stack_entry { 123 struct auth_stack_entry {
......