diff options
author | Peter Maydell | 2018-12-14 14:30:54 +0100 |
---|---|---|
committer | Peter Maydell | 2018-12-14 14:30:54 +0100 |
commit | 0012eb98f165e98ede33b5b57fb1985f1fe224b7 (patch) | |
tree | 282ccdaeca9f6cf19ae6fd3c520fcc414ac028cb /hw/intc/puv3_intc.c | |
parent | hw/sd/sdhci: Don't leak memory region in sdhci_sysbus_realize() (diff) | |
download | qemu-0012eb98f165e98ede33b5b57fb1985f1fe224b7.tar.gz qemu-0012eb98f165e98ede33b5b57fb1985f1fe224b7.tar.xz qemu-0012eb98f165e98ede33b5b57fb1985f1fe224b7.zip |
tests/test-arm-mptimer: Don't leak string memory
The test-arm-mptimer setup creates a lot of test names using
g_strdup_printf() and never frees them. This is entirely
harmless since it's one-shot test code, but it clutters
up the output from clang's LeakSanitizer. Refactor to
use a helper function so we can free the memory.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20181204132952.2601-5-peter.maydell@linaro.org
Diffstat (limited to 'hw/intc/puv3_intc.c')
0 files changed, 0 insertions, 0 deletions