summaryrefslogtreecommitdiff
path: root/bsd.cc
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2011-03-15 00:34:10 -0400
committersrs5694 <srs5694@users.sourceforge.net>2011-03-15 00:34:10 -0400
commit9a46b042c57144c26a67781d335e6ba4128382d2 (patch)
treea7126d54e9cd8387251787c7f1da6cfb7b44b8f2 /bsd.cc
parentd3ba7a61f68ca97fc3828f0c2edd7cda7ca3dfda (diff)
downloadsgdisk-9a46b042c57144c26a67781d335e6ba4128382d2.tar.gz
Patches supplied by Florian Zumbiehl
Diffstat (limited to 'bsd.cc')
-rw-r--r--bsd.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/bsd.cc b/bsd.cc
index c3ecadf..57fb912 100644
--- a/bsd.cc
+++ b/bsd.cc
@@ -37,8 +37,7 @@ BSDData::BSDData(void) {
} // default constructor
BSDData::~BSDData(void) {
- if (partitions != NULL)
- delete[] partitions;
+ delete[] partitions;
} // destructor
// Read BSD disklabel data from the specified device filename. This function