Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1088)

Unified Diff: patches/17_fix_leak_in_libmtp_release_device.patch

Issue 2364793002: Revert "Uprev libmtp to 1.1.12" (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libmtp@master
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « patches/16_fix_leaks.patch ('k') | patches/20_get_thumbnail_format.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: patches/17_fix_leak_in_libmtp_release_device.patch
diff --git a/patches/17_fix_leak_in_libmtp_release_device.patch b/patches/17_fix_leak_in_libmtp_release_device.patch
new file mode 100644
index 0000000000000000000000000000000000000000..be36871cb2c394a74ea441b645aa69ee7d051849
--- /dev/null
+++ b/patches/17_fix_leak_in_libmtp_release_device.patch
@@ -0,0 +1,12 @@
+Index: src/libmtp.c
+===================================================================
+--- src/libmtp.c (revision 178530)
++++ src/libmtp.c (working copy)
+@@ -2357,6 +2357,7 @@
+ iconv_close(params->cd_ucs2_to_locale);
+ free(ptp_usb);
+ ptp_free_params(params);
++ free(params);
+ free_storage_list(device);
+ // Free extension list...
+ if (device->extensions != NULL) {
« no previous file with comments | « patches/16_fix_leaks.patch ('k') | patches/20_get_thumbnail_format.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698