debian/patches/009-fix-memory-leak
raw| 1 | commit 4d2ca760bb6fa13aeac2234d5d36525f3c34bfe6 |
| 2 | Author: Robert Nelson <[email protected]> |
| 3 | Date: Wed May 30 01:31:32 2007 +0000 |
| 4 | |
| 5 | Fix memory leak - Thanks to tcawley |
| 6 | |
| 7 | --- a/mtxl.c |
| 8 | +++ b/mtxl.c |
| 9 | @@ -1288,6 +1288,8 @@ |
| 10 | DataBuffer, ElementStatus, mode_sense, NULL); |
| 11 | |
| 12 | ElementStatus->StorageElementCount += ElementStatus->ImportExportCount; |
| 13 | + |
| 14 | + free(DataBuffer); |
| 15 | } |
| 16 | |
| 17 | /* ----------------- DRIVES ---------------------- */ |