Merge "mtp: fix double free of thumbnail data" into nyc-dev am: 914bc14e82

am: f9e16c9899

Change-Id: Id780ff2bfb2f3881cbf33032971ed3b397a2fcde
This commit is contained in:
Chong Zhang
2017-10-30 23:16:40 +00:00
committed by android-build-merger

View File

@@ -948,6 +948,7 @@ void* MyMtpDatabase::getThumbnail(MtpObjectHandle handle, size_t& outThumbSize)
outThumbSize = image_data.thumbnail.length;
} else {
free(result);
result = NULL;
}
}
break;