summaryrefslogtreecommitdiffstats
path: root/src/dabInputZmq.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dabInputZmq.cpp')
-rw-r--r--src/dabInputZmq.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dabInputZmq.cpp b/src/dabInputZmq.cpp
index e6f2f17..3efa044 100644
--- a/src/dabInputZmq.cpp
+++ b/src/dabInputZmq.cpp
@@ -144,8 +144,10 @@ int dabInputZmqReadFrame(dabInputOperations* ops, void* args, void* buffer, int
}
else
{
- memcpy(buffer, input->frame_buffer.front(), size);
+ char* newframe = input->frame_buffer.front();
+ memcpy(buffer, newframe, size);
etiLog.print(TcpLog::NOTICE, "inputZMQ got %d, %d\n", rc, input->frame_buffer.size());
+ delete[] newframe;
input->frame_buffer.pop_front();
return size;
}