vhost-user-gpu: reorder free calls.
commit25b2ef2e8ee23109b0c3ce9ea71330bf8a7d12bd
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 4 Jun 2021 10:37:14 +0000 (4 12:37 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 15 Jun 2021 05:16:25 +0000 (15 07:16 +0200)
tree8f62e8deead182314f100e269e851aadeb47d479
parent05ece98f965997649b8d922d224240459bcc1403
vhost-user-gpu: reorder free calls.

Free in correct order to avoid use-after-free.

Resolves: CID 1453812
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210604103714.1237414-1-kraxel@redhat.com>
contrib/vhost-user-gpu/vhost-user-gpu.c