diff options
author | Mauro Matteo Cascella <mcascell@redhat.com> | 2022-12-22 18:29:15 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-27 22:29:01 +0100 |
commit | 12a51d983de118cf2258fe238b22fabedb4a5ffc (patch) | |
tree | 09c725bee922e164ab5e1964b93831b8719d1434 /hw/core | |
parent | 38ce1ebf578f3c8cdfb150f397a43d4a65ae74d5 (diff) | |
download | qemu-12a51d983de118cf2258fe238b22fabedb4a5ffc.zip qemu-12a51d983de118cf2258fe238b22fabedb4a5ffc.tar.gz qemu-12a51d983de118cf2258fe238b22fabedb4a5ffc.tar.bz2 |
hw/nubus/nubus-device: Fix memory leak in nubus_device_realize
Local variable "name" is allocated through strdup_printf and should be
freed with g_free() to avoid memory leak.
Fixes: 3616f424 ("nubus-device: add romfile property for loading declaration ROMs")
Signed-off-by: Mauro Matteo Cascella <mcascell@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20221222172915.671597-1-mcascell@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'hw/core')
0 files changed, 0 insertions, 0 deletions