summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/shm_pci.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-03-25 12:20:05 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2017-03-25 12:24:12 +0100
commit0bbd4b30d618acd50bf2d6d09facf3e5f814e4ff (patch)
treead1dec3d3cc797918188763381a3b91e206479b0 /src/ipcpd/normal/shm_pci.c
parent1d9061666656ba1cc5a5c72fcc564a3a45b2dd8a (diff)
downloadouroboros-0bbd4b30d618acd50bf2d6d09facf3e5f814e4ff.tar.gz
ouroboros-0bbd4b30d618acd50bf2d6d09facf3e5f814e4ff.zip
ipcpd: normal: Avoid double free
The flow manager should clean up the buffer after the call to frct create instance has either failed or succeeded.
Diffstat (limited to 'src/ipcpd/normal/shm_pci.c')
-rw-r--r--src/ipcpd/normal/shm_pci.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ipcpd/normal/shm_pci.c b/src/ipcpd/normal/shm_pci.c
index 1170adff..001463eb 100644
--- a/src/ipcpd/normal/shm_pci.c
+++ b/src/ipcpd/normal/shm_pci.c
@@ -188,8 +188,6 @@ buffer_t * shm_pci_ser_buf(buffer_t * buf,
memcpy(buffer->data + pci_info.head_size,
buf->data, buf->len);
- free(buf->data);
-
if (pci_info.dtc.has_chk)
crc32((uint32_t *) (buffer->data +
pci_info.head_size + buf->len),