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/frct.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ipcpd/normal/frct.c') diff --git a/src/ipcpd/normal/frct.c b/src/ipcpd/normal/frct.c index 62cbf9f7..8bf080ce 100644 --- a/src/ipcpd/normal/frct.c +++ b/src/ipcpd/normal/frct.c @@ -280,6 +280,7 @@ cep_id_t frct_i_create(uint64_t address, pthread_mutex_unlock(&frct.instances_lock); return INVALID_CEP_ID; } + id = instance->cep_id; instance->cube = cube; pthread_mutex_unlock(&frct.instances_lock); -- cgit v1.2.3