From 8ae6b69c5d727704d4414e370c165dd71668031c Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Thu, 5 Aug 2010 09:48:41 -0700 Subject: [PATCH] Fix some memory leaks. --- bluesky/cloudlog.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bluesky/cloudlog.c b/bluesky/cloudlog.c index 30c2db0..49099e1 100644 --- a/bluesky/cloudlog.c +++ b/bluesky/cloudlog.c @@ -185,9 +185,6 @@ BlueSkyCloudPointer bluesky_cloudlog_serialize(BlueSkyCloudLog *log, return log->location; } - g_print("Flushing object %s to cloud...\n", - bluesky_cloudlog_id_to_string(log->id)); - for (int i = 0; i < log->links->len; i++) { BlueSkyCloudLog *ref = g_array_index(log->links, BlueSkyCloudLog *, i); @@ -265,6 +262,8 @@ void bluesky_cloudlog_write_log(BlueSkyFS *fs) state->location.sequence++; state->location.offset = 0; + } else { + g_string_free(state->data, TRUE); } state->data = NULL; -- 2.20.1