qemu-ga: Avoiding freeing line prematurely
authorDehan Meng <demeng@redhat.com>
Thu, 7 Nov 2024 10:21:55 +0000 (12:21 +0200)
committerKonstantin Kostiuk <kkostiuk@redhat.com>
Thu, 7 Nov 2024 10:28:20 +0000 (12:28 +0200)
commit5ab1c032e6eea810142eb918c57222464482756f
tree4477aee687a73383dab1d5212ff97267065e17f2
parentccc2dfab57bfe4fdd02288761a7e7482f352bfcc
qemu-ga: Avoiding freeing line prematurely

It's now only freed at the end of the function.

Signed-off-by: Dehan Meng <demeng@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Message-ID: <20241107102155.57573-4-kkostiuk@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
qga/commands-linux.c