[NTOSKRNL]

Fix a memory leak


svn path=/trunk/; revision=56367
This commit is contained in:
Pierre Schweitzer 2012-04-19 20:55:59 +00:00
parent a9d728c50a
commit c20ab1959d

View file

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