vector: fix error handling in _alloc()
We need to cache pmemobj_tx_alloc return value and only after that assign it to _data, because when pmemobj_tx_alloc fails, it aborts transaction.
parent
7969273e
Please register or sign in to comment
We need to cache pmemobj_tx_alloc return value and only after that assign it to _data, because when pmemobj_tx_alloc fails, it aborts transaction.