From 0bbd4b30d618acd50bf2d6d09facf3e5f814e4ff Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Sat, 25 Mar 2017 12:20:05 +0100 Subject: 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. --- src/ipcpd/normal/shm_pci.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/ipcpd/normal/shm_pci.c') 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), -- cgit v1.2.3