a proposal fix for the issue: #2187
fix vsm_free (never incremented)
For some reason beyond me the build fails on travis while this patch was applied on an up to date master, so I wouldn't be bothered by that. I've seen another build of master passing.
LGTM, well spotted!
I'd prefer this is done in VSM_common_free() together where g_used is decremented.
Nevermind this. I re-read the code and this is the correct approach. OK with me.
Catching up with unread commits, I now believe that a29fca7 breaks pull request builds.
Merged. Thanks for the PR!
Backport review: Patch b8dec33 backported as 1978ebf.