From 4c99bb6acc3b50421c296fd847d0bf4905c46f32 Mon Sep 17 00:00:00 2001 From: vivek-shankar Date: Tue, 11 Apr 2017 20:23:21 -0400 Subject: [PATCH] delete corrected to free for malloc --- src/buzz_utility.cpp | 4 ++-- src/roscontroller.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/buzz_utility.cpp b/src/buzz_utility.cpp index 905e1a9..9139c12 100644 --- a/src/buzz_utility.cpp +++ b/src/buzz_utility.cpp @@ -91,7 +91,7 @@ namespace buzz_utility{ tot += unMsgSize; } }while(size - tot > sizeof(uint16_t) && unMsgSize > 0); - delete[] pl; + free(pl); /* Process messages */ buzzvm_process_inmsgs(VM); } @@ -141,7 +141,7 @@ namespace buzz_utility{ uint64_t* payload_64 = new uint64_t[total_size]; memcpy((void*)payload_64, (void*)buff_send, total_size*sizeof(uint64_t)); - delete[] buff_send; + free(buff_send); /*for(int i=0;ipayload64.size() > 3){