From e24d0395ccb7f93eb9c6b89117fdf69475173d28 Mon Sep 17 00:00:00 2001 From: Alex Rosenbaum Date: Mon, 22 Sep 2014 12:16:20 +0300 Subject: [PATCH] issue: 426119 Fix C coverity DELETE_ARRAY issue in Context.cc Change-Id: I9655018d088d1f91922026e630ddad0c64ec836a --- src/c/src/Context.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c/src/Context.cc b/src/c/src/Context.cc index ee02ea8..bcc24c4 100644 --- a/src/c/src/Context.cc +++ b/src/c/src/Context.cc @@ -36,7 +36,7 @@ Context::Context(size_t events_queue_size) : events_queue(events_queue_size) BULLSEYE_EXCLUDE_BLOCK_START if (ctx == NULL) { CONTEXT_LOG_ERR("ERROR on xio_context_create()"); - delete staging_scheduled_event_buffer; + delete[] staging_scheduled_event_buffer; throw std::bad_alloc(); } BULLSEYE_EXCLUDE_BLOCK_END