on_error:
if (!_request_answer_required(type, NULL))
- return EINA_FALSE;
+ {
+ free(buf);
+ return EINA_FALSE;
+ }
+
ERR("Socket error: %d %m", errno);
switch (errno)
{
}
else
ERR("Invalid message type received: %d (%s)", answer->type, __FUNCTION__);
- fentry = ie->data1;
EINA_REFCOUNT_UNREF(fentry)
eina_hash_del(_file_entries, fentry->hkey, fentry);
return EINA_TRUE;
// Reopen mempool
if (EINA_REFCOUNT_GET(&map->mempool) > 0)
{
- oldbuf = calloc(1, sizeof(Glyph_Map));
+ oldbuf = calloc(1, sizeof(*oldbuf));
oldbuf->f = map->mempool.f;
oldbuf->data = map->mempool.data;
oldbuf->size = map->mempool.size;
if (EINA_REFCOUNT_GET(&map->mempool) > 0)
{
- oldbuf = calloc(1, sizeof(Glyph_Map));
+ oldbuf = calloc(1, sizeof(*oldbuf));
oldbuf->f = eina_file_dup(map->mempool.f);
oldbuf->data = map->mempool.data;
oldbuf->size = map->mempool.size;
if (!_index.files.header || !_index.files.entries.filedata)
return NULL;
+ if (!ie->data1)
+ return NULL;
+
// Direct access
fe = ie->data1;
if (fe->server_file_id)