Freeing the variables at appropriate place. --- obexd/src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/obexd/src/main.c b/obexd/src/main.c index 80645f8..7a1ab98 100644 --- a/obexd/src/main.c +++ b/obexd/src/main.c @@ -293,8 +293,9 @@ int main(int argc, char *argv[]) char *old_root = option_root, *home = getenv("HOME"); if (home) { option_root = g_strdup_printf("%s/%s", home, old_root); - g_free(old_root); + g_free(home); } + g_free(old_root); } if (option_capability == NULL) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html