- fixed memory bugs in examples

This commit is contained in:
Michael Zillgith 2017-03-24 09:37:23 +01:00
parent a1f442f087
commit 003f1ef730
5 changed files with 11 additions and 7 deletions

View file

@ -93,8 +93,6 @@ namespace reporting
rcb1.SetIntgPd(5000);
rcb1.SetRptEna(true);
rcb1.SetRCBValues();
rcb2.GetRCBValues();
if (rcb2.IsBuffered())

View file

@ -65,8 +65,8 @@ int main(int argc, char** argv) {
if (error != IED_ERROR_OK)
printf("failed to write simpleIOGenericIO/GGIO1.NamPlt.vendor!\n");
else
MmsValue_delete(value);
MmsValue_delete(value);
/* read data set */
@ -117,6 +117,8 @@ int main(int argc, char** argv) {
ClientDataSet_destroy(clientDataSet);
ClientReportControlBlock_destroy(rcb);
close_connection:
IedConnection_close(con);

View file

@ -42,8 +42,9 @@ printDataDirectory(char* doRef, IedConnection con, int spaces)
sprintf(daRef, "%s.%s", doRef, daName);
printDataDirectory(daRef, con, spaces + 2);
}
}
LinkedList_destroy(dataAttributes);
}
int
@ -145,6 +146,8 @@ main(int argc, char** argv)
dataSetMemberRef = LinkedList_getNext(dataSetMemberRef);
}
LinkedList_destroy(dataSetMembers);
dataSet = LinkedList_getNext(dataSet);
}

View file

@ -352,6 +352,7 @@ int main(int argc, char** argv) {
}
exit:
free(hostname);
MmsConnection_destroy(con);
}

View file

@ -87,9 +87,9 @@
<TrgOps dchg="true" qchg="true"/>
</LogControl>
<LogControl name="GeneralLog" datSet="" logName="">
<LogControl name="GeneralLog" logName="">
<TrgOps dchg="true" qchg="true"/>
</LogControl>
</LogControl>
<Log />