fixed memory leaks.

This commit is contained in:
Martin Preuss
2025-03-23 16:58:07 +01:00
parent ebce002614
commit 52eb92a00c
14 changed files with 292 additions and 7 deletions

View File

@@ -87,6 +87,7 @@ void GWENHYWFAR_CB _freeData(GWEN_UNUSED void *bp, void *p)
if (xo->fdObject) {
AQH_Object_Disable(xo->fdObject);
AQH_Object_free(xo->fdObject);
GWEN_RingBuffer_free(xo->ringBuffer);
xo->fdObject=NULL;
}
GWEN_FREE_OBJECT(xo);
@@ -379,7 +380,7 @@ int AQH_MsgReader_ReadRemainderFromRingbuffer(AQH_OBJECT *o)
}
}
else {
DBG_ERROR(AQH_LOGDOMAIN, "Nothing to read??");
DBG_INFO(AQH_LOGDOMAIN, "Nothing to read??");
}
}
return 0;