From 8b82cd34e1188c1e8037f6be2e7a8e43b365567f Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Thu, 22 Apr 2021 10:49:38 +0200 Subject: [PATCH] - IedConnection: fixed problem - outstanding calls not released in function deleteFileAndSetFileHandler (#322) --- src/iec61850/client/ied_connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/iec61850/client/ied_connection.c b/src/iec61850/client/ied_connection.c index 3b9b4361..e8eb0923 100644 --- a/src/iec61850/client/ied_connection.c +++ b/src/iec61850/client/ied_connection.c @@ -2171,10 +2171,11 @@ deleteFileAndSetFileHandler (uint32_t invokeId, void* parameter, MmsError mmsErr IedConnectionOutstandingCall call = iedConnection_lookupOutstandingCall(self, invokeId); if (call) { - IedConnection_GenericServiceHandler handler = (IedConnection_GenericServiceHandler) call->callback; handler(invokeId, call->callbackParameter, iedConnection_mapMmsErrorToIedError(mmsError)); + + iedConnection_releaseOutstandingCall(self, call); } else { if (DEBUG_IED_CLIENT)