| 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) {
|
|
|