From fdbb21274a4e8af419b2581e05242f5058471f72 Mon Sep 17 00:00:00 2001 From: walter harms Date: Sat, 28 Oct 2017 19:14:13 +0200 Subject: 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 Reviewed-by: Daniel Martin Reviewed-by: Emil Velikov --- AuDispose.c | 6 +++--- 1 file 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); -- cgit v1.2.1