[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] 74a57d: tests: fix a memory in test_socket_un
From: |
Peter Maydell |
Subject: |
[Qemu-commits] [qemu/qemu] 74a57d: tests: fix a memory in test_socket_unix_abstract_good |
Date: |
Tue, 25 Aug 2020 13:00:33 -0700 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: 74a57ddc02c41f8f4bb549cedb107c1086daba58
https://github.com/qemu/qemu/commit/74a57ddc02c41f8f4bb549cedb107c1086daba58
Author: Li Qiang <liq3ea@163.com>
Date: 2020-08-25 (Tue, 25 Aug 2020)
Changed paths:
M tests/test-util-sockets.c
Log Message:
-----------
tests: fix a memory in test_socket_unix_abstract_good
After build qemu with '-fsanitize=address' extra-cflags,
'make check' show following leak:
=================================================================
==44580==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 2500 byte(s) in 1 object(s) allocated from:
#0 0x7f1b5a8b8d28 in __interceptor_calloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xded28)
#1 0x7f1b5a514b10 in g_malloc0
(/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x51b10)
#2 0xd79ea4e4c0ad31c3 (<unknown module>)
SUMMARY: AddressSanitizer: 2500 byte(s) leaked in 1 allocation(s).
Call 'g_rand_free' in the end of function to avoid this.
Fixes: 4d3a329af59("tests/util-sockets: add abstract unix socket cases")
Signed-off-by: Li Qiang <liq3ea@163.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: xiaoqiang zhao <zxq_yx_007@163.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Commit: d1a2b51f868d09ca8489ee9aee9c55632ed8fb92
https://github.com/qemu/qemu/commit/d1a2b51f868d09ca8489ee9aee9c55632ed8fb92
Author: Peter Maydell <peter.maydell@linaro.org>
Date: 2020-08-25 (Tue, 25 Aug 2020)
Changed paths:
M tests/test-util-sockets.c
Log Message:
-----------
Merge remote-tracking branch 'remotes/berrange/tags/socket-next-pull-request'
into staging
Add support for UNIX sockets in the abstract namespace
# gpg: Signature made Tue 25 Aug 2020 11:52:22 BST
# gpg: using RSA key DAF3A6FDB26B62912D0E8E3FBE86EBB415104FDF
# gpg: Good signature from "Daniel P. Berrange <dan@berrange.com>" [full]
# gpg: aka "Daniel P. Berrange <berrange@redhat.com>" [full]
# Primary key fingerprint: DAF3 A6FD B26B 6291 2D0E 8E3F BE86 EBB4 1510 4FDF
* remotes/berrange/tags/socket-next-pull-request:
tests: fix a memory in test_socket_unix_abstract_good
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Compare: https://github.com/qemu/qemu/compare/7774e403f2ac...d1a2b51f868d
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] 74a57d: tests: fix a memory in test_socket_unix_abstract_good,
Peter Maydell <=