summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDebian Bacula Team <pkg-bacula-devel@lists.alioth.debian.org>2024-01-08 10:40:21 +0100
committerCarsten Leonhardt <leo@debian.org>2024-01-08 10:40:21 +0100
commit8314ec56d6b614e2666de5da4fb8fba3da02f21f (patch)
treeb3a974e20e0bdb2481bfd9ac0abbc3edb130dcf0
parent04115f9f67a1ae199e456d4303a7679c172a3fdc (diff)
fix-memory-leak
commit 4d2ca760bb6fa13aeac2234d5d36525f3c34bfe6 Author: Robert Nelson <robertn@the-nelsons.org> Date: Wed May 30 01:31:32 2007 +0000 Fix memory leak - Thanks to tcawley Gbp-Pq: Name 009-fix-memory-leak
-rw-r--r--mtxl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mtxl.c b/mtxl.c
index 7106a47..f52efc6 100644
--- a/mtxl.c
+++ b/mtxl.c
@@ -1288,6 +1288,8 @@ ElementStatus_T *ReadElementStatus(DEVICE_TYPE MediumChangerFD, RequestSense_T *
DataBuffer, ElementStatus, mode_sense, NULL);
ElementStatus->StorageElementCount += ElementStatus->ImportExportCount;
+
+ free(DataBuffer);
}
/* ----------------- DRIVES ---------------------- */