]> 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:32 +0000 (20:36 -0600)
commit67b5a4e6167841ec448d174786c6175aec627c6a
tree0313786339f709eb9365de65bc1f9fbbfa90b4ac
parentb14d16592790f681c5e2e1c5d80fbe0eb92bf358
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