Diff between c89618370dce83aa561ef733179a0b62ad927e93 and fd3868ebc7bebe34afa3fced392686bb1a949da8

Changed Files

File Additions Deletions Status
obexd/plugins/phonebook-dummy.c +3 -0 modified

Full Patch

diff --git a/obexd/plugins/phonebook-dummy.c b/obexd/plugins/phonebook-dummy.c
index 29ae889..b9e3a0d 100644
--- a/obexd/plugins/phonebook-dummy.c
+++ b/obexd/plugins/phonebook-dummy.c
@@ -524,6 +524,9 @@ void *phonebook_get_entry(const char *folder, const char *id,
 	filename = g_build_filename(root_folder, folder, id, NULL);
 
 	fd = open(filename, O_RDONLY);
+
+	g_free(filename);
+
 	if (fd < 0) {
 		DBG("open(): %s(%d)", strerror(errno), errno);
 		if (err)