From 8df538d056c11d703029cae4a1f02c84609ea5ac Mon Sep 17 00:00:00 2001 From: vivek-shankar Date: Tue, 11 Apr 2017 20:43:57 -0400 Subject: [PATCH] delete correction to free --- 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 d1a8bb3..ce2a40e 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){