Take the following example
void CTest::testDummy()
{
CFbsBitmap* bitmap = new (ELeave) CFbsBitmap();
CleanupStack:

ushL(bitmap);
bitmap->Load(_L("z:\\resource\\apps\\mml_adapter.mbm"

/*desc*/,
0/*id*/);
CleanupStack:

opAndDestroy();
}
This test will fail with a memory leak, even though
everything is fine (code is perfectly valid).
The "fake" memory leak is because bitmap->load creates
a fbs session (if it does not exist)...session which
is destroyed only at the end of the application....(if
you run second time this test it will work fine).
I suppose this is happening because SymbianOSUnit
works with __UHEAP_MARK/__UHEAP_MARKEND...but I'm not
sure since I haven't went that deep in SymbianOSUnit
Also, having this session type classes is a evry
common pattern in Symbian (use a single session for
all classes....first class that use that session will
create it)...so I expect this problem to manifest for
other classes also.