diff --git a/lib/tcp_rigctl_msg_source_impl.cc b/lib/tcp_rigctl_msg_source_impl.cc index 12d3670..51c08a9 100644 --- a/lib/tcp_rigctl_msg_source_impl.cc +++ b/lib/tcp_rigctl_msg_source_impl.cc @@ -134,7 +134,7 @@ namespace gr } /* All good until now. Allocate buffer memory and proceed */ - buf = new uint8_t (d_mtu); + buf = new uint8_t[d_mtu]; while (d_running) { sock = accept (listen_sock, &client_addr, &client_addr_len); @@ -191,7 +191,7 @@ namespace gr close (sock); } close (listen_sock); - delete buf; + delete [] buf; exit (EXIT_SUCCESS); }