diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2020-01-26 16:39:22 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2020-01-26 16:39:22 +0100 |
commit | f57017e6ced8ebc19c0d01b831cca1ff3b858785 (patch) | |
tree | 5e38954e3811d4f66d89683ba3ceec98b4d6bd92 | |
parent | 96673548d8c3061d1d0cabda5e329b6874e542c7 (diff) | |
download | libgphoto2-f57017e6ced8ebc19c0d01b831cca1ff3b858785.tar.gz |
remove allocation, done by called function now
-rw-r--r-- | camlibs/clicksmart310/library.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/camlibs/clicksmart310/library.c b/camlibs/clicksmart310/library.c index 4599bc28a..674c9ec25 100644 --- a/camlibs/clicksmart310/library.c +++ b/camlibs/clicksmart310/library.c @@ -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); |