about summary refs log tree commit diff
path: root/src/libutil
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/serialise.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/serialise.cc b/src/libutil/serialise.cc
index 1f817a869539..6b71f52c151b 100644
--- a/src/libutil/serialise.cc
+++ b/src/libutil/serialise.cc
@@ -13,7 +13,7 @@ BufferedSink::~BufferedSink()
     /* We can't call flush() here, because C++ for some insane reason
        doesn't allow you to call virtual methods from a destructor. */
     assert(!bufPos);
-    if (buffer) delete[] buffer;
+    delete[] buffer;
 }
 
     
@@ -71,7 +71,7 @@ void Source::operator () (unsigned char * data, size_t len)
 
 BufferedSource::~BufferedSource()
 {
-    if (buffer) delete[] buffer;
+    delete[] buffer;
 }