Fix memory leak in bluesky_block_fetch.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Fri, 12 Mar 2010 00:56:26 +0000 (16:56 -0800)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Fri, 12 Mar 2010 00:56:26 +0000 (16:56 -0800)
bluesky/file.c

index 66f84e7..ee4179e 100644 (file)
@@ -230,6 +230,8 @@ void bluesky_block_fetch(BlueSkyFS *fs, BlueSkyBlock *block,
         bluesky_store_add_barrier(barrier, async);
     else
         bluesky_store_async_wait(async);
+
+    bluesky_store_async_unref(async);
 }
 
 /* Write the given block to cloud-backed storage and mark it clean. */