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 /codecs/gsm | |
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 'codecs/gsm')
-rw-r--r-- | codecs/gsm/src/gsm_destroy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/codecs/gsm/src/gsm_destroy.c b/codecs/gsm/src/gsm_destroy.c index 4807c0acd..b2748fc97 100644 --- a/codecs/gsm/src/gsm_destroy.c +++ b/codecs/gsm/src/gsm_destroy.c @@ -22,5 +22,5 @@ void gsm_destroy P1((S), gsm S) { - if (S) free((char *)S); + free((char *)S); } |