diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-05 15:06:37 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-05 15:06:37 +0200 |
commit | 84d540904e13882e8c299f98e5931a1213b6d47e (patch) | |
tree | 7ece6c8fc28639ef255c000be30519cfcebc0199 /src/ipcpd/local | |
parent | 55356470f9fe0b60bd9e0db1e90dbca6b4e7db63 (diff) | |
download | ouroboros-84d540904e13882e8c299f98e5931a1213b6d47e.tar.gz ouroboros-84d540904e13882e8c299f98e5931a1213b6d47e.zip |
ipcpd: Fix memleak
The entry from the ringbuffer was never freed, causing memleak per SDU.
Diffstat (limited to 'src/ipcpd/local')
-rw-r--r-- | src/ipcpd/local/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipcpd/local/main.c b/src/ipcpd/local/main.c index e77a0403..99580a45 100644 --- a/src/ipcpd/local/main.c +++ b/src/ipcpd/local/main.c @@ -210,6 +210,8 @@ static void * ipcp_local_sdu_loop(void * o) pthread_rwlock_unlock(&_ap_instance->flows_lock); pthread_rwlock_unlock(&_ipcp->state_lock); + + free(e); } return (void *) 1; |