Patch from Krzysztof Blaszkowski with some cleanups:
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 19 Feb 2009 19:06:13 +0000 (19:06 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 19 Feb 2009 19:06:13 +0000 (19:06 +0000)
commit18f34c5abc6df9e999ac9b1934d1a62476fcfca5
tree22775345b3df23a3700a5a326bc1c6cd43e9d214
parentce60cc73e5eb047f0104ecb8011c0310a2116321
Patch from Krzysztof Blaszkowski with some cleanups:

I realized yesterday that the fix missed one rare case
still. if the hiwmk_check() returned with error and no_fail override was set
then the counter would still cross 0 on free.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@677 d57e44dd-8a1f-0410-8b47-8ef2f437770f
scst/src/scst_mem.c