From 0fee01e1b6c2a953d8938f772488401d8033618f Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Thu, 15 Feb 2024 20:42:07 +0000 Subject: [PATCH] - IedConnection: calling ControlObjectClient_destroy in IedConnection_destroy to prevent memory leak when user forgets to call --- src/iec61850/client/ied_connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iec61850/client/ied_connection.c b/src/iec61850/client/ied_connection.c index 3336b5b1..014f204f 100644 --- a/src/iec61850/client/ied_connection.c +++ b/src/iec61850/client/ied_connection.c @@ -949,7 +949,7 @@ IedConnection_destroy(IedConnection self) GLOBAL_FREEMEM(self->outstandingCalls); - LinkedList_destroyStatic(self->clientControls); + LinkedList_destroyDeep(self->clientControls, (LinkedListValueDeleteFunction)ControlObjectClient_destroy); Semaphore_destroy(self->clientControlsLock); Semaphore_destroy(self->outstandingCallsLock);