Li Qiang
74a57ddc02
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>
2020-08-25 11:49:49 +01:00
..
2020-08-21 14:51:43 +01:00
2020-08-21 06:30:40 -04:00
2020-06-09 09:19:48 -07:00
2020-08-21 06:18:35 -04:00
2020-08-21 06:30:15 -04:00
2020-05-15 15:25:07 +01:00
2019-11-05 16:36:11 +01:00
2020-06-17 17:48:39 +01:00
2020-08-21 06:30:40 -04:00
2019-06-04 15:20:41 +02:00
2020-08-21 06:30:43 -04:00
2020-08-21 06:30:15 -04:00
2020-08-21 08:56:09 -05:00
2020-08-24 16:39:53 +01:00
2020-08-21 12:48:16 -07:00
2020-06-16 14:49:05 +01:00
2019-10-07 15:14:15 +02:00
2020-08-21 06:30:45 -04:00
2020-03-17 17:38:47 +00:00
2019-01-14 14:52:30 +00:00
2019-01-14 14:52:30 +00:00
2019-10-28 13:32:21 +01:00
2020-05-07 12:52:51 +01:00
2020-07-02 06:25:28 +02:00
2020-06-23 15:46:05 +01:00
2019-03-07 22:05:54 +01:00
2019-08-21 10:27:13 +02:00
2020-04-30 06:51:15 +02:00
2020-07-02 06:25:28 +02:00
2018-12-11 15:45:22 -02:00
2020-07-02 06:25:28 +02:00
2019-06-12 13:20:21 +02:00
2020-07-17 14:20:57 +02:00
2019-06-12 13:20:21 +02:00
2020-01-06 18:41:32 +04:00
2019-06-12 13:20:20 +02:00
2020-01-07 14:32:57 +00:00
2020-08-21 06:30:43 -04:00
2020-08-21 06:30:43 -04:00
2019-08-20 17:26:21 +02:00
2020-01-12 11:42:40 +01:00
2020-07-11 15:53:00 +01:00
2020-02-25 17:42:59 +00:00
2020-03-17 18:55:52 -04:00
2019-08-22 17:30:25 +04:00
2019-08-22 17:30:25 +04:00
2019-03-07 22:16:22 +01:00
2020-02-22 08:26:47 +00:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2020-07-02 06:25:28 +02:00
2020-05-18 19:05:25 +02:00
2020-07-02 06:25:28 +02:00
2019-12-17 09:05:23 +01:00
2019-08-16 13:31:52 +02:00
2020-07-02 06:25:28 +02:00
2019-09-10 08:58:43 +02:00
2020-04-07 14:34:47 +02:00
2020-07-28 18:27:59 +04:00
2019-03-05 14:43:11 +01:00
2019-03-07 22:16:22 +01:00
2019-06-12 13:18:33 +02:00
2020-07-02 06:25:28 +02:00
2019-01-11 13:57:25 +01:00
2020-06-15 11:33:51 +01:00
2019-12-17 09:05:23 +01:00
2019-12-17 09:05:23 +01:00
2018-10-24 19:03:37 +01:00
2018-12-13 19:10:06 +01:00
2020-03-18 14:03:46 -04:00
2019-08-16 13:31:52 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-09-03 23:24:42 +02:00
2019-12-17 09:05:23 +01:00
2020-07-02 06:25:28 +02:00
2019-12-18 12:28:44 +01:00
2020-07-02 06:25:28 +02:00
2020-06-15 22:06:04 +02:00
2020-07-02 06:25:28 +02:00
2020-08-21 06:30:20 -04:00
2020-08-21 06:30:20 -04:00
2018-09-26 08:55:54 -07:00
2020-03-17 19:58:34 +01:00
2020-03-17 19:58:34 +01:00
2019-03-05 14:43:11 +01:00
2020-04-30 07:26:09 +02:00
2020-03-06 10:35:15 +00:00
2020-02-22 08:26:47 +00:00
2020-07-02 06:25:28 +02:00
2020-07-02 06:25:28 +02:00
2020-07-02 06:25:28 +02:00
2019-06-03 14:03:00 +02:00
2019-08-20 17:26:19 +02:00
2020-07-02 06:25:29 +02:00
2020-08-25 11:49:49 +01:00
2020-02-28 09:25:49 +01:00
2020-03-17 19:48:10 -04:00
2019-10-26 15:38:06 +02:00