- 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; self->mechanism = mechanism;
} }
IsoConnectionParameters IsoConnectionParameters
IsoConnectionParameters_create() IsoConnectionParameters_create()
{ {
@ -75,7 +74,13 @@ IsoConnectionParameters_create()
void void
IsoConnectionParameters_destroy(IsoConnectionParameters self) IsoConnectionParameters_destroy(IsoConnectionParameters self)
{ {
GLOBAL_FREEMEM(self); if (self)
{
if (self->localIpAddress)
GLOBAL_FREEMEM((void*)(self->localIpAddress));
GLOBAL_FREEMEM(self);
}
} }
void void
@ -89,7 +94,6 @@ IsoConnectionParameters_setTlsConfiguration(IsoConnectionParameters self, TLSCon
#endif #endif
} }
void void
IsoConnectionParameters_setAcseAuthenticationParameter(IsoConnectionParameters self, IsoConnectionParameters_setAcseAuthenticationParameter(IsoConnectionParameters self,
AcseAuthenticationParameter acseAuthParameter) AcseAuthenticationParameter acseAuthParameter)

Loading…
Cancel
Save