summaryrefslogtreecommitdiff
path: root/bin/bbackupd/BackupDaemon.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-07-26 22:03:38 +0000
committerChris Wilson <chris+github@qwirx.com>2007-07-26 22:03:38 +0000
commite2816b665349a6855c464fe72cb9225d38ba38c4 (patch)
tree0691b1fdd9b48a623cf0ede55260fe59a4673da1 /bin/bbackupd/BackupDaemon.cpp
parent964e6eb5a08030d06629a4d71bf1b383ad6f3b79 (diff)
Fixed object use after delete, thanks Gary! (refs #3, merges [1673])
Diffstat (limited to 'bin/bbackupd/BackupDaemon.cpp')
-rw-r--r--bin/bbackupd/BackupDaemon.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/bbackupd/BackupDaemon.cpp b/bin/bbackupd/BackupDaemon.cpp
index 41003280..4d5b6fa4 100644
--- a/bin/bbackupd/BackupDaemon.cpp
+++ b/bin/bbackupd/BackupDaemon.cpp
@@ -1825,12 +1825,14 @@ void BackupDaemon::SetupLocations(BackupClientContext &rClientContext, const Con
}
catch(...)
{
- delete ploc;
- ploc = 0;
BOX_ERROR("Failed to configure location '"
<< ploc->mName << "' path '"
<< ploc->mPath << "': please check for "
"previous errors");
+
+ delete ploc;
+ ploc = NULL;
+
throw;
}
}