Parent: 740e5a5af5c765317e5c3666286ff54f3c54d08f
Author: Johan Hedberg <johan.hedberg@nokia.com>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-12-04 23:48:26
Tree: d8f02978e8caf1d7f0fff24fdb6a7b1458055e02
obexd: Fix issues caused by multiple dependencies on phonebook.c Previously only PBAP depended on phonebook.c. Now IrMC Sync also depends on it. That means that phonebook_init and phonebook_exit need to be able to handle multiple calls or else memory leaks and double-free's are likely. This patch adds safeguards for this to the _init and _exit functions that need it.
Diffstat
| M | obexd/plugins/phonebook-dummy.c | | | 4 | ++++ |
| M | obexd/plugins/phonebook-ebook.c | | | 4 | ++++ |
2 files changed, 8 insertions(+), 0 deletions(-)