while right, coverity doest know that this is just a dummy example,
so... make it happy by unmapping. fixes CID 1193218
return map;
}
-/*
static void
_cserve2_shm_unmap(void *map, size_t length)
{
munmap(map, length);
}
-*/
static Error_Type
image_open(const char *file EINA_UNUSED, const char *key EINA_UNUSED, Slave_Msg_Image_Opened *result)
return CSERVE2_RESOURCE_ALLOCATION_FAILED;
memset(map + params->shm.image_offset, 'A', params->shm.image_size);
+ _cserve2_shm_unmap(map, params->shm.mmap_size);
return CSERVE2_NONE;
}