diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-11-01 16:21:13 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-11-01 16:21:13 +0100 |
commit | bdcb5a188db8f472809ca25077145516daf582d5 (patch) | |
tree | 90d2ee1bbbd5903ac7d6e9a2c908a7c410e1f09d /nx-X11/lib/src/AuDispose.c | |
parent | e721ba296dc2a7180c2fd7aa81cd0bcd090dfd23 (diff) | |
parent | c590c64726db5c1a50640332c1383a471c24459d (diff) | |
download | nx-libs-bdcb5a188db8f472809ca25077145516daf582d5.tar.gz nx-libs-bdcb5a188db8f472809ca25077145516daf582d5.tar.bz2 nx-libs-bdcb5a188db8f472809ca25077145516daf582d5.zip |
Merge branch 'uli42-pr/work_on_xau' into 3.6.x
Attributes GH PR #851: https://github.com/ArcticaProject/nx-libs/pull/851
Diffstat (limited to 'nx-X11/lib/src/AuDispose.c')
-rw-r--r-- | nx-X11/lib/src/AuDispose.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/nx-X11/lib/src/AuDispose.c b/nx-X11/lib/src/AuDispose.c index bb890201d..215401ae9 100644 --- a/nx-X11/lib/src/AuDispose.c +++ b/nx-X11/lib/src/AuDispose.c @@ -1,4 +1,3 @@ - /* Copyright 1988, 1998 The Open Group @@ -32,13 +31,12 @@ in this Software without prior written authorization from The Open Group. #include <stdlib.h> void -XauDisposeAuth (auth) -Xauth *auth; +XauDisposeAuth (Xauth *auth) { if (auth) { - if (auth->address) (void) free (auth->address); - if (auth->number) (void) free (auth->number); - if (auth->name) (void) free (auth->name); + free (auth->address); + free (auth->number); + free (auth->name); if (auth->data) { (void) bzero (auth->data, auth->data_length); (void) free (auth->data); |