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

Unified Diff: src/libmtp.c

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 | « patches/17_fix_leak_in_libmtp_release_device.patch ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/17_fix_leak_in_libmtp_release_device.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698