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

Unified Diff: patches/17_fix_leak_in_libmtp_release_device.patch

Issue 12047095: Fix a leak in libmtp's LIBMTP_Release_Device(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libmtp/
Patch Set: Created 7 years, 11 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 | « no previous file | src/libmtp.c » ('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
===================================================================
--- patches/17_fix_leak_in_libmtp_release_device.patch (revision 0)
+++ patches/17_fix_leak_in_libmtp_release_device.patch (revision 0)
@@ -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 | « no previous file | src/libmtp.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698