infra: fix reference counter in lib_mapfree

This commit is contained in:
Thomas Schoebel-Theuer 2013-07-09 18:50:18 +02:00
parent acd9b194aa
commit 764d5ed7d8
1 changed files with 1 additions and 0 deletions

View File

@ -190,6 +190,7 @@ struct mapfree_info *mapfree_get(const char *name, int flags)
MARS_WRN("race on creation of '%s' detected\n", name);
_mapfree_put(mf);
mf = _mf;
atomic_inc(&mf->mf_count);
goto leave;
}
}