home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / lib / Xau / AuDispose.c next >
Encoding:
C/C++ Source or Header  |  1991-01-08  |  1.1 KB  |  36 lines

  1. /*
  2.  * Xau - X Authorization Database Library
  3.  *
  4.  * $XConsortium: AuDispose.c,v 1.3 91/01/08 15:08:21 gildea Exp $
  5.  *
  6.  * Copyright 1988 Massachusetts Institute of Technology
  7.  *
  8.  * Permission to use, copy, modify, and distribute this software and its
  9.  * documentation for any purpose and without fee is hereby granted, provided
  10.  * that the above copyright notice appear in all copies and that both that
  11.  * copyright notice and this permission notice appear in supporting
  12.  * documentation, and that the name of M.I.T. not be used in advertising or
  13.  * publicity pertaining to distribution of the software without specific,
  14.  * written prior permission.  M.I.T. makes no representations about the
  15.  * suitability of this software for any purpose.  It is provided "as is"
  16.  * without express or implied warranty.
  17.  *
  18.  * Author:  Keith Packard, MIT X Consortium
  19.  */
  20.  
  21. #include <X11/Xauth.h>
  22.  
  23. void
  24. XauDisposeAuth (auth)
  25. Xauth    *auth;
  26. {
  27.     if (auth) {
  28.     if (auth->address) (void) free (auth->address);
  29.     if (auth->number) (void) free (auth->number);
  30.     if (auth->name) (void) free (auth->name);
  31.     if (auth->data) (void) free (auth->data);
  32.     free ((char *) auth);
  33.     }
  34.     return;
  35. }
  36.