app_voicemail: Fix memory management issues.
authorCorey Farrell <git@cfware.com>
Tue, 19 Dec 2017 00:04:56 +0000 (19:04 -0500)
committerCorey Farrell <git@cfware.com>
Tue, 19 Dec 2017 00:04:56 +0000 (19:04 -0500)
commitdc04d1ec93d018b5b84a5b6a84eef9d55ec1fc9d
treedd3212b7972fffb10babf2ceee80f55b337dc911
parent7b127e2d20a59850c0ef080afd38c2ade6a34422
app_voicemail: Fix memory management issues.

* mwi_sub_event_cb: mwist leaked on separate_mailbox failure.
* add_email_attachment: A reference to sox_gain_tmpdir was used
  after the storage was out of scope.

Change-Id: I6282c542ff7b82fa091177a912d11234a8b00a30
apps/app_voicemail.c