length = item->length;
}
- if (length == 0)
+ if (length == 0) {
+ bluesky_cachefile_unref(cachefile);
+ g_mutex_unlock(cachefile->lock);
return NULL;
+ }
g_print("Found a cleaner checkpoint record.\n");
bluesky_cloudlog_serialize(ref, fs);
}
+ /* FIXME: Ought lock to be taken earlier? */
g_mutex_lock(log->lock);
bluesky_cloudlog_fetch(log);
g_assert(log->data != NULL);
int offset, gsize len)
{
g_assert(offset + len <= mmap->len);
+ g_assert(mmap->addr != NULL);
BlueSkyRCStr *string = g_new(BlueSkyRCStr, 1);
string->mmap = mmap;