mirror of
https://github.com/schoebel/mars
synced 2025-02-17 20:47:16 +00:00
infra: fix reference counter in lib_mapfree
This commit is contained in:
parent
acd9b194aa
commit
764d5ed7d8
@ -190,6 +190,7 @@ struct mapfree_info *mapfree_get(const char *name, int flags)
|
|||||||
MARS_WRN("race on creation of '%s' detected\n", name);
|
MARS_WRN("race on creation of '%s' detected\n", name);
|
||||||
_mapfree_put(mf);
|
_mapfree_put(mf);
|
||||||
mf = _mf;
|
mf = _mf;
|
||||||
|
atomic_inc(&mf->mf_count);
|
||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user