summaryrefslogtreecommitdiff
path: root/debian/patches/009-fix-memory-leak
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/009-fix-memory-leak')
-rw-r--r--debian/patches/009-fix-memory-leak17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/009-fix-memory-leak b/debian/patches/009-fix-memory-leak
new file mode 100644
index 0000000..2f51b50
--- /dev/null
+++ b/debian/patches/009-fix-memory-leak
@@ -0,0 +1,17 @@
+commit 4d2ca760bb6fa13aeac2234d5d36525f3c34bfe6
+Author: Robert Nelson <robertn@the-nelsons.org>
+Date: Wed May 30 01:31:32 2007 +0000
+
+ Fix memory leak - Thanks to tcawley
+
+--- a/mtxl.c
++++ b/mtxl.c
+@@ -1288,6 +1288,8 @@
+ DataBuffer, ElementStatus, mode_sense, NULL);
+
+ ElementStatus->StorageElementCount += ElementStatus->ImportExportCount;
++
++ free(DataBuffer);
+ }
+
+ /* ----------------- DRIVES ---------------------- */