commit | fd603ed9e2f87d05b2261a25e11aceb01814dfbe | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Sat Mar 28 18:09:31 2015 +0100 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Sat Mar 28 18:13:37 2015 +0100 |
tree | c073912edaaa0fd00e6e43131231e8994eb28539 | |
parent | cf7557a7e756af54350fb9bcf1a19429848a17de [diff] |
write_queue: Check the result of osmo_wqueue_enqueue and free The write_queue is designed to have a maximum amount of pending messages and will refuse to take new messages when it has been reached. The caller can decide if it wants to flush the queue and add the message again, create a log. But in all cases the ownership of the msgb has not been transferred. Fix the potential memory leak in the failure situation.