From 7b9b1a8536c6a01095cba6937fb789a44136c871 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Fri, 5 Oct 2007 17:13:53 +0000 Subject: [PATCH] - Free BusInterface only if it was really alloc'd - Remove svn:needs-lock property from this [stub]-driver svn path=/trunk/; revision=29399 --- reactos/drivers/storage/ide/pciidex/fdo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/drivers/storage/ide/pciidex/fdo.c b/reactos/drivers/storage/ide/pciidex/fdo.c index 4a9018a2a16..0edca588cdb 100644 --- a/reactos/drivers/storage/ide/pciidex/fdo.c +++ b/reactos/drivers/storage/ide/pciidex/fdo.c @@ -78,7 +78,7 @@ GetBusInterface( Status = STATUS_SUCCESS; cleanup: - ExFreePool(BusInterface); + if (BusInterface) ExFreePool(BusInterface); return Status; }