From 0e228836a8535584c71b3ed0b0a65e75df72d1f3 Mon Sep 17 00:00:00 2001 From: asfernandes Date: Sat, 30 Jan 2016 23:40:20 +0000 Subject: [PATCH] Correction. --- examples/interfaces/05.user_metadata.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/interfaces/05.user_metadata.cpp b/examples/interfaces/05.user_metadata.cpp index 76dd6d4c98..5eea2ccd8c 100644 --- a/examples/interfaces/05.user_metadata.cpp +++ b/examples/interfaces/05.user_metadata.cpp @@ -180,7 +180,7 @@ public: template T to(const unsigned char* b, unsigned o) { - return *((T*)(b + o)); + return *((T*) (b + o)); } int main() @@ -254,7 +254,7 @@ int main() prov->release(); status.dispose(); - delete buffer; + delete[] buffer; return rc; }