https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c7af85b64bbe62035370d…
commit c7af85b64bbe62035370de2937b777406ac59b87
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sun Sep 16 15:25:27 2018 +0200
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sun Sep 30 16:11:42 2018 +0200
[BTRFS] Fix IRP leak.
This leaked at least one IRP for every write, making it the largest leak when
running with BTRFS as the system volume.
Thanks to Victor Perevertkin.
Submitted upstream thanks to Pierre:
https://github.com/maharmstone/btrfs/pull/106
---
drivers/filesystems/btrfs/write.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/filesystems/btrfs/write.c b/drivers/filesystems/btrfs/write.c
index 7ede09ee6a..6292d7efb0 100644
--- a/drivers/filesystems/btrfs/write.c
+++ b/drivers/filesystems/btrfs/write.c
@@ -2333,6 +2333,10 @@ void free_write_data_stripes(write_data_context* wtc) {
last_mdl = stripe->mdl;
+#ifdef __REACTOS__
+ if (stripe->Irp)
+ IoFreeIrp(stripe->Irp);
+#endif
le = le->Flink;
}