summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Exception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/src/H5Exception.cpp')
-rw-r--r--c++/src/H5Exception.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/src/H5Exception.cpp b/c++/src/H5Exception.cpp
index aef0d9c..37d0da5 100644
--- a/c++/src/H5Exception.cpp
+++ b/c++/src/H5Exception.cpp
@@ -85,7 +85,7 @@ string Exception::getMajorString( hid_t err_major ) const
// Convert the C error description and return
string major_str(mesg_C);
- delete mesg_C;
+ delete []mesg_C;
return( major_str );
}
@@ -121,7 +121,7 @@ string Exception::getMinorString( hid_t err_minor ) const
// Convert the C error description and return
string minor_str(mesg_C);
- delete mesg_C;
+ delete []mesg_C;
return( minor_str );
}