diff --git a/libfreerdp/core/autodetect.c b/libfreerdp/core/autodetect.c index f524f162e..60e134e18 100644 --- a/libfreerdp/core/autodetect.c +++ b/libfreerdp/core/autodetect.c @@ -183,6 +183,7 @@ BOOL autodetect_send_bandwidth_measure_payload(rdpContext* context, UINT16 paylo { Stream_Release(s); } + free(buffer); return bResult; } @@ -236,6 +237,7 @@ static BOOL autodetect_send_bandwidth_measure_stop(rdpContext* context, UINT16 p { Stream_Release(s); } + free(buffer); return bResult; }