bareos: master 62a232fe

Author Committer Branch Timestamp Parent
Sebastian Sura Sebastian Sura master 2025-09-03 11:47 master 7bd2e7b2 Pending
Changeset stored: fix race condition

Because the decrement does not happen inside the lock, multiple
threads can run into the "else" branch, which then causes a double
free.

The better solution would be for decrement to return the value after
the decrement, but as this is not performance cricital, the easy fix
is probably the better one
mod - core/src/stored/vol_mgr.cc Diff File