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; }