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

am: 396487f5aa

Change-Id: Idf1ec8982316d3cef253609c702435a21d8f2eed
This commit is contained in:
Chong Zhang
2017-10-30 23:33:04 +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;