qemu-keymap: Make references to allocations static
commit2523baf7fb4ddca900647be7ac39bce31eae2d42
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Fri, 24 May 2024 05:35:47 +0000 (24 14:35 +0900)
committerThomas Huth <thuth@redhat.com>
Wed, 29 May 2024 10:41:56 +0000 (29 12:41 +0200)
treefe13753eec1bd077f3fe666f13b6b2cb005b5be2
parentbde26d90ae9f7551cac90e117fc7216c807a3bfe
qemu-keymap: Make references to allocations static

LeakSanitizer complains about allocations whose references are held
only by automatic variables. It is possible to free them to suppress
the complaints, but it is a chore to make sure they are freed in all
exit paths so make them static instead.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240524-xkb-v4-1-2de564e5c859@daynix.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
qemu-keymap.c