mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[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
This commit is contained in:
parent
257923cad1
commit
c7af85b64b
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue