- MMS client: fixed potential problem in multi-variable write response parsing

pull/244/head
Michael Zillgith 5 years ago
parent 22700a97b7
commit 074cee0cbc

@ -589,6 +589,7 @@ IedConnection_setGoCBValues(IedConnection self, IedClientError* error, ClientGoo
}
*error = iedConnection_mapMmsErrorToIedError(mmsError);
goto exit_function;
}
else {

@ -132,8 +132,12 @@ mmsClient_parseWriteMultipleItemsResponse(ByteBuffer* message, int32_t bufPos, M
exit_with_error:
*mmsError = MMS_ERROR_PARSING_RESPONSE;
if (accessResults != NULL)
LinkedList_destroyDeep(*accessResults, (LinkedListValueDeleteFunction) MmsValue_delete);
if (accessResults != NULL) {
if (*accessResults) {
LinkedList_destroyDeep(*accessResults, (LinkedListValueDeleteFunction) MmsValue_delete);
*accessResults = NULL;
}
}
}

Loading…
Cancel
Save