summaryrefslogtreecommitdiff
path: root/main/asterisk.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/asterisk.c')
-rw-r--r--main/asterisk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index a756b305b..e83534787 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -941,8 +941,7 @@ void ast_unregister_atexit(void (*func)(void))
AST_RWLIST_TRAVERSE_SAFE_END;
AST_RWLIST_UNLOCK(&atexits);
- if (ae)
- free(ae);
+ free(ae);
}
/* Sending commands from consoles back to the daemon requires a terminating NULL */