Skip to content

Commit

Permalink
invalidate_volumes: don't leak memory on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
HeisSpiter authored and maharmstone committed Oct 15, 2017
1 parent 0eeb151 commit 4598c2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2375,6 +2375,7 @@ static NTSTATUS invalidate_volumes(PIRP Irp) {
if (!NT_SUCCESS(Status)) {
ERR("do_write returned %08x\n", Status);
ExReleaseResourceLite(&Vcb->tree_lock);
ExFreePool(newvpb);
goto end;
}

Expand Down

0 comments on commit 4598c2c

Please sign in to comment.