From 8fa25ce182c249d7939d9e6254f4196bdbf23eec Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Wed, 6 Mar 2019 20:48:44 +0100 Subject: [PATCH] - IEC 61850 client: fixed memory leak in IedConnection_getRCBValues --- src/iec61850/client/client_report_control.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/iec61850/client/client_report_control.c b/src/iec61850/client/client_report_control.c index 9b38d69e..84f80914 100644 --- a/src/iec61850/client/client_report_control.c +++ b/src/iec61850/client/client_report_control.c @@ -492,6 +492,8 @@ IedConnection_getRCBValues(IedConnection self, IedClientError* error, const char *error = iedConnection_mapDataAccessErrorToIedError( MmsValue_getDataAccessError(rcb)); + MmsValue_delete(rcb); + return NULL; }