Merge "mtp: fix double free of thumbnail data" into nyc-dev am: 914bc14e82 am: f9e16c9899 am: 396487f5aa am: 5330335288 am: db258ebba8 am: e3ac25eb0c

am: bd7101937a

Change-Id: I78a26c3abfb72e9b873b719506f869df0aa87da1
This commit is contained in:
Chong Zhang
2017-10-31 00:41:00 +00:00
committed by android-build-merger

View File

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