diff options
author | walter harms <wharms@bfs.de> | 2017-10-28 19:14:13 +0200 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2017-10-30 15:49:11 +0000 |
commit | fdbb21274a4e8af419b2581e05242f5058471f72 (patch) | |
tree | b0a1d728c1cc19f6acf5634eedc98c8c25d0c3d6 | |
parent | 987fee49dc1750082cfe6e24833379233777a13b (diff) |
AuDispose.c:remove redundant null check on calling free()
redundant null check on auth->address calling free()
redundant null check on auth->number calling free()
redundant null check on auth->name calling free()
Signed-off-by: Walter Harms <wharms@bfs.de>
Reviewed-by: Daniel Martin <consume.noise@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
-rw-r--r-- | AuDispose.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/AuDispose.c b/AuDispose.c index 2a9b2f1..355224d 100644 --- a/AuDispose.c +++ b/AuDispose.c @@ -34,9 +34,9 @@ void 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); |