diff --git a/reactos/ntoskrnl/fsrtl/dbcsname.c b/reactos/ntoskrnl/fsrtl/dbcsname.c index 6051472d766..e2c564e2f0a 100644 --- a/reactos/ntoskrnl/fsrtl/dbcsname.c +++ b/reactos/ntoskrnl/fsrtl/dbcsname.c @@ -4,7 +4,7 @@ * FILE: ntoskrnl/fsrtl/name.c * PURPOSE: Provides DBCS parsing and other support routines for FSDs * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org) - * Pierre Schweitzer (pierre.schweitzer@reactos.org) + * Pierre Schweitzer (pierre.schweitzer@reactos.org) */ /* INCLUDES ******************************************************************/ @@ -251,6 +251,11 @@ FsRtlIsDbcsInExpression(IN PANSI_STRING Expression, ExpressionPosition++; } + if (BackTracking) + { + ExFreePoolWithTag(BackTracking, 'nrSF'); + } + return (ExpressionPosition == Expression->Length && NamePosition == Name->Length); }