28195 -The current function <function> was declared as acquiring memory in <variable> and exited without doing so
The function prototype for the function being analyzed has a __drv_acquiresMemory annotation which indicates that it acquires memory in the designated result location, but in at least one path, the driver did not acquire the memory.
Note that PFD will not recognize the actual implementation of a memory allocator (involving address arithmetic) and will not recognize that memory is allocated (although many wrappers will be recognized). In this case, PFD does not recognize that the memory was allocated and issues this warning. To suppress the false positive, use a #pragma warning on the line that precedes the opening brace { of the function body.
Send comments about this topic to Microsoft
Build date: 12/7/2011