Fixed missing NULL set of pointer after free
authorArmin Novak <armin.novak@thincast.com>
Tue, 21 Jan 2020 13:40:33 +0000 (14:40 +0100)
committerArmin Novak <armin.novak@thincast.com>
Tue, 21 Jan 2020 13:44:21 +0000 (14:44 +0100)
Due to this double free was possible if disconnect_and_clear was
called multiple times.

libfreerdp/core/connection.c

index ab613b3..3643d0f 100644 (file)
@@ -394,6 +394,7 @@ BOOL rdp_client_disconnect(rdpRdp* rdp)
                return FALSE;
 
        codecs_free(context->codecs);
+       context->codecs = NULL;
        return TRUE;
 }