- fixed memory leak in IedConnection_setLocalAddress (I6LLCV-97)

v1.5
Michael Zillgith 1 year ago
parent 3bc94bf1bd
commit fd820643c5

@ -63,7 +63,6 @@ AcseAuthenticationParameter_setAuthMechanism(AcseAuthenticationParameter self, A
self->mechanism = mechanism;
}
IsoConnectionParameters
IsoConnectionParameters_create()
{
@ -75,8 +74,14 @@ IsoConnectionParameters_create()
void
IsoConnectionParameters_destroy(IsoConnectionParameters self)
{
if (self)
{
if (self->localIpAddress)
GLOBAL_FREEMEM((void*)(self->localIpAddress));
GLOBAL_FREEMEM(self);
}
}
void
IsoConnectionParameters_setTlsConfiguration(IsoConnectionParameters self, TLSConfiguration tlsConfig)
@ -89,7 +94,6 @@ IsoConnectionParameters_setTlsConfiguration(IsoConnectionParameters self, TLSCon
#endif
}
void
IsoConnectionParameters_setAcseAuthenticationParameter(IsoConnectionParameters self,
AcseAuthenticationParameter acseAuthParameter)

Loading…
Cancel
Save