summaryrefslogtreecommitdiff
path: root/src/entry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/entry.cc')
-rw-r--r--src/entry.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/entry.cc b/src/entry.cc
index 815186f0..4309f9d9 100644
--- a/src/entry.cc
+++ b/src/entry.cc
@@ -52,14 +52,9 @@ entry_base_t::~entry_base_t()
foreach (xact_t * xact, xacts) {
// If the transaction is a temporary, it will be destructed when the
- // temporary is. If it's from a binary cache, we can safely destruct it
- // but its memory will be deallocated with the cache.
- if (! xact->has_flags(ITEM_TEMP)) {
- if (! xact->has_flags(ITEM_IN_CACHE))
- checked_delete(xact);
- else
- xact->~xact_t();
- }
+ // temporary is.
+ if (! xact->has_flags(ITEM_TEMP))
+ checked_delete(xact);
}
}