Fix memory leak in bluesky_block_fetch.
[bluesky.git] / 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. */