summaryrefslogtreecommitdiff
path: root/src/write-mgr-file.c
diff options
context:
space:
mode:
authorSenko Rasic <senko.rasic@collabora.co.uk>2010-07-22 13:18:46 +0200
committerSenko Rasic <senko.rasic@collabora.co.uk>2010-08-05 15:02:56 +0200
commit1c593ebf011a68fea4117fce64ab5aee87399379 (patch)
tree49e3af25b660c5f1fd64025dd5342db08867fcf3 /src/write-mgr-file.c
parente6a666c2eae120b2fc23f0f4ee8084b32fad0c5f (diff)
mgr_file_contents(): don't leak GKeyFile
Diffstat (limited to 'src/write-mgr-file.c')
-rw-r--r--src/write-mgr-file.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/write-mgr-file.c b/src/write-mgr-file.c
index ced03d20..a16afe30 100644
--- a/src/write-mgr-file.c
+++ b/src/write-mgr-file.c
@@ -312,7 +312,10 @@ mgr_file_contents (const char *busname,
g_hash_table_destroy (props);
protocols = protocols->next;
}
- return g_key_file_to_data (f, NULL, error);
+
+ file_data = g_key_file_to_data (f, NULL, error);
+ g_key_file_free (f);
+ return file_data;
}
int