]> git.ipfire.org Git - thirdparty/asterisk.git/commit
main/app: Fix leaks.
authorCorey Farrell <git@cfware.com>
Tue, 19 Dec 2017 01:47:54 +0000 (20:47 -0500)
committerCorey Farrell <git@cfware.com>
Tue, 19 Dec 2017 02:36:23 +0000 (20:36 -0600)
commit7d37a17ce9bda5a1c221066e4e71782fa032f167
tree4caee7243eb100e9f49cb193578dbcdda1cc510c
parentd312068ee93ff8ce97b464f3c2ff3304e15cb3fe
main/app: Fix leaks.

* ast_linear_stream would leak a file descriptor if it failed to allocate
  lin.
* ast_control_tone leaked zone and ts if ast_playtones_start failed.

Additionally added whitespace to ast_linear_stream, pulled assignments
out of conditionals for improved readability.

Change-Id: I6d1a10cf9161b1529d939b9b2d63ea36d395b657
main/app.c