remove allocation, done by called function now

This commit is contained in:
Marcus Meissner
2020-01-26 16:39:22 +01:00
parent 96673548d8
commit f57017e6ce

View File

@@ -195,9 +195,7 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename,
return GP_ERROR;
}
data = malloc (w*h);
if(!data)
return GP_ERROR_NO_MEMORY;
data = NULL;
GP_DEBUG("Fetch entry %i\n", k);
b = clicksmart_read_pic_data (camera->pl, camera->port, &data, k);