diff options
author | David Vossel <dvossel@digium.com> | 2009-06-18 16:37:42 +0000 |
---|---|---|
committer | David Vossel <dvossel@digium.com> | 2009-06-18 16:37:42 +0000 |
commit | dcfe69ec6454cecae1d6c25bbaf33e26a531b3ff (patch) | |
tree | 9e55718a16861e122cd8aed23e4b4f0369fdec92 /utils/ael_main.c | |
parent | 730e60e583292b45b175a021fef98a5066f0827f (diff) |
fixes some memory leaks and redundant conditions
(closes issue #15269)
Reported by: contactmayankjain
Patches:
patch.txt uploaded by contactmayankjain (license 740)
memory_leak_stuff.trunk.diff uploaded by dvossel (license 671)
Tested by: contactmayankjain, dvossel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@201678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'utils/ael_main.c')
-rw-r--r-- | utils/ael_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/ael_main.c b/utils/ael_main.c index ba7970955..9249cd77b 100644 --- a/utils/ael_main.c +++ b/utils/ael_main.c @@ -299,8 +299,7 @@ int ast_add_extension2(struct ast_context *con, } /* since add_extension2 is responsible for the malloc'd data stuff */ - if( data ) - free(data); + free(data); return 0; } |