Fix a memory leak.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Wed, 2 Feb 2011 18:01:00 +0000 (10:01 -0800)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Wed, 2 Feb 2011 18:01:00 +0000 (10:01 -0800)
bluesky/log.c

index 03f4fb3..5a16238 100644 (file)
@@ -550,6 +550,8 @@ static void cloudlog_partial_fetch_complete(BlueSkyStoreAsync *async,
             g_warning("Unable to open and write to cache file %s: %m",
                       cachefile->filename);
         }
+
+        bluesky_rangeset_free(items);
     } else {
         g_print("Error fetching from cloud, retrying...\n");
         cloudlog_partial_fetch_start(cachefile, async->start, async->len);