diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2017-03-25 11:28:12 +0000 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-03-25 11:28:12 +0000 |
commit | 0a75074b15f66a60496d196c0759d33afa3c8b18 (patch) | |
tree | ad1dec3d3cc797918188763381a3b91e206479b0 /src/ipcpd/normal/shm_pci.c | |
parent | 1d9061666656ba1cc5a5c72fcc564a3a45b2dd8a (diff) | |
parent | 0bbd4b30d618acd50bf2d6d09facf3e5f814e4ff (diff) | |
download | ouroboros-0a75074b15f66a60496d196c0759d33afa3c8b18.tar.gz ouroboros-0a75074b15f66a60496d196c0759d33afa3c8b18.zip |
Merged in sandervrijders/ouroboros/be-double-free (pull request #424)
ipcpd: normal: Avoid double free
Diffstat (limited to 'src/ipcpd/normal/shm_pci.c')
-rw-r--r-- | src/ipcpd/normal/shm_pci.c | 2 |
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), |