bareos: master 5543219c

Author Committer Branch Timestamp Parent
arogge arogge master 2020-06-02 19:25 master 7f37ef21 Pending
Changeset stored: avoid double-free in spool.cc

Near the end of DespoolData() rdev->dev_name and rdev->errmsg are freed.
However, the pointers are not set to nullptr, which leads to a
double-free when the dtor runs.
This patch removes the FreeMemory()/FreePoolMemory() calls and leaves
cleaning to the dtor alone.
mod - core/src/stored/spool.cc Diff File