Commit c8aaa24
hw/display/xlnx_dp: Free FIFOs adding xlnx_dp_finalize()
When building with --enable-sanitizers we get:
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0x5618479ec7cf in malloc (qemu-system-aarch64+0x233b7cf)
#1 0x7f675745f958 in g_malloc (/lib64/libglib-2.0.so.0+0x58958)
qemu#2 0x561847c2dcc9 in xlnx_dp_init hw/display/xlnx_dp.c:1259:5
qemu#3 0x56184a5bdab8 in object_init_with_type qom/object.c:375:9
qemu#4 0x56184a5a2bda in object_initialize_with_type qom/object.c:517:5
qemu#5 0x56184a5a24d5 in object_initialize qom/object.c:536:5
qemu#6 0x56184a5a2f6c in object_initialize_child_with_propsv qom/object.c:566:5
qemu#7 0x56184a5a2e60 in object_initialize_child_with_props qom/object.c:549:10
qemu#8 0x56184a5a3a1e in object_initialize_child_internal qom/object.c:603:5
qemu#9 0x5618495aa431 in xlnx_zynqmp_init hw/arm/xlnx-zynqmp.c:273:5
The RX/TX FIFOs are created in xlnx_dp_init(), add xlnx_dp_finalize()
to destroy them.
Fixes: 58ac482 ("introduce xlnx-dp")
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20210323182958.277654-1-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>1 parent a62ee00 commit c8aaa24
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1260 | 1260 | | |
1261 | 1261 | | |
1262 | 1262 | | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
1263 | 1271 | | |
1264 | 1272 | | |
1265 | 1273 | | |
| |||
1359 | 1367 | | |
1360 | 1368 | | |
1361 | 1369 | | |
| 1370 | + | |
1362 | 1371 | | |
1363 | 1372 | | |
1364 | 1373 | | |
| |||
0 commit comments