From abad371ed91add18aa34ffd354d3a6ef7793954f Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Thu, 27 May 2010 15:04:41 -0300 Subject: [PATCH] obexd: Fix crash on PBAP SetPhoneBook function Fix crash on PBAP SetPhoneBook for tracker back-end. When the target folder is NULL and flags indicates "Go up 1 level", g_free is called for a wrong address. g_strrstr function doesn't return a newly-allocated string. --- obexd/plugins/phonebook-tracker.c | 1 - 1 file changed, 1 deletion(-) diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c index ee8481e15..5c9e2a533 100644 --- a/obexd/plugins/phonebook-tracker.c +++ b/obexd/plugins/phonebook-tracker.c @@ -622,7 +622,6 @@ char *phonebook_set_folder(const char *current_folder, const char *new_folder, len = tmp2 - (current_folder + 1); g_free(tmp1); - g_free(tmp2); if (len == 0) base = g_strdup("/"); -- 2.47.3