Update ied_connection.c

ClientDataSet_destroy didn't check if self is null, checked if self->dataSetValues is null though MmsValue_delete checks it itself, and GLOBAL_FREEMEMed(self->dataSetValues) though MmsValue_delete GLOBAL_FREEMEMs its parameter unless it's null.
pull/398/head
tolich-aka-shadow 3 years ago committed by GitHub
parent 15398c9ab5
commit d9c3de28ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -258,10 +258,10 @@ ClientDataSet_create(const char* dataSetReference)
void
ClientDataSet_destroy(ClientDataSet self)
{
if (self->dataSetValues != NULL)
MmsValue_delete(self->dataSetValues);
if (self == NULL)
return;
GLOBAL_FREEMEM(self->dataSetReference);
MmsValue_delete(self->dataSetValues);
GLOBAL_FREEMEM(self);
}

Loading…
Cancel
Save