Michal Privoznik
44d8324f13
virnetsocket: Don't free virCommand in virNetSocketNewConnectCommand()
...
The aim of virNetSocketNewConnectCommand() is to execute passed
command and attach socket pair/pipe to it so that client socket
can be opened (this is used for connections with alternative
transports, e.g. ssh). The virCommand is created in a caller and
then passed to virNetSocketNewConnectCommand() where it is freed
using virCommandFree(). This approach is wrong on two levels:
1) The deallocation happens on a different level than allocation,
2) There's a WIN32 stub that just reports an error and doesn't
free the command.
However, with g_autoptr() trickery the command can be freed in
caller.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2021-10-15 16:03:22 +02:00
..
2021-03-20 07:53:45 +04:00
2021-04-21 14:20:03 +02:00
2021-02-08 18:50:47 +04:00
2021-04-12 15:55:10 +02:00
2021-05-07 18:02:48 +02:00
2021-10-12 14:23:53 +02:00
2021-08-17 13:50:38 +02:00
2021-07-20 16:43:46 +02:00
2021-07-16 14:50:57 +02:00
2021-07-16 14:50:57 +02:00
2021-07-16 14:50:57 +02:00
2021-09-14 14:24:07 -05:00
2021-05-27 15:38:19 +02:00
2021-05-27 15:38:28 +02:00
2021-04-12 15:55:10 +02:00
2021-08-20 15:43:17 +02:00
2021-10-15 12:49:11 +02:00
2021-03-09 22:58:30 +00:00
2021-01-08 15:27:00 +01:00
2021-03-09 22:58:30 +00:00
2021-05-03 12:14:44 +02:00
2021-05-03 12:14:44 +02:00
2021-09-23 14:48:51 +02:00
2021-08-25 15:32:44 +02:00
2021-07-12 16:34:07 +02:00
2021-10-15 12:49:07 +02:00
2021-10-15 12:48:47 +02:00
2021-04-12 15:55:10 +02:00
2021-05-21 14:00:43 +02:00
2021-05-21 14:00:43 +02:00
2021-05-21 14:00:43 +02:00
2021-07-15 14:50:48 +02:00
2021-02-10 13:37:12 +01:00
2021-09-09 15:29:00 +02:00
2021-08-19 13:32:10 +02:00
2021-04-01 13:36:35 +02:00
2021-04-13 17:00:38 +02:00
2021-09-08 15:13:12 +02:00
2021-04-13 17:00:38 +02:00
2021-04-21 14:20:03 +02:00
2021-02-08 18:50:47 +04:00
2021-03-05 15:33:34 +01:00
2021-05-24 20:26:20 +02:00
2021-09-09 18:06:13 +02:00
2021-10-01 10:58:27 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-08 15:31:01 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-05-18 09:09:37 -06:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-08-20 16:43:19 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-14 14:24:07 -05:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-05-18 10:02:24 +02:00
2021-09-09 18:06:13 +02:00
2021-09-22 14:53:56 +02:00
2021-04-13 17:00:38 +02:00
2021-08-20 15:19:35 +02:00
2021-04-13 17:00:38 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-09-21 12:25:42 +02:00
2021-09-24 10:37:01 +02:00
2021-04-13 17:00:38 +02:00
2021-08-26 09:16:44 +02:00
2021-10-12 11:11:13 +02:00
2021-09-09 18:06:13 +02:00
2021-04-13 17:00:38 +02:00
2021-07-23 11:30:31 +02:00
2021-05-18 13:18:05 +02:00
2021-02-11 17:05:33 +01:00
2021-08-26 09:16:44 +02:00
2021-02-11 17:05:34 +01:00
2021-07-22 15:55:26 +02:00
2021-10-15 12:49:07 +02:00
2021-10-12 10:26:00 +02:00
2021-09-09 18:06:13 +02:00
2021-05-17 09:25:32 +02:00
2021-09-09 18:06:13 +02:00
2021-05-10 13:32:43 +02:00
2021-09-09 18:06:13 +02:00
2021-08-16 14:22:38 +02:00
2021-09-09 18:06:13 +02:00
2021-05-17 09:25:32 +02:00
2021-04-13 17:00:38 +02:00
2021-05-21 14:00:43 +02:00
2021-05-21 14:00:43 +02:00
2021-04-13 17:00:38 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 15:29:00 +02:00
2021-04-13 17:00:38 +02:00
2021-09-09 18:06:13 +02:00
2021-04-13 17:00:38 +02:00
2021-09-23 14:48:51 +02:00
2021-08-23 14:43:57 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-09-09 18:06:13 +02:00
2021-03-22 12:44:18 +01:00
2021-04-13 17:00:38 +02:00
2021-05-17 09:25:32 +02:00
2021-04-13 17:00:38 +02:00
2021-06-15 11:03:56 +02:00
2021-09-09 18:06:13 +02:00
2021-04-13 17:00:38 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-22 14:53:55 +02:00
2021-05-24 20:26:20 +02:00
2021-05-17 09:25:32 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-08-06 08:53:25 +02:00
2021-04-21 14:18:51 +02:00
2021-09-21 14:09:44 +02:00
2021-09-09 18:06:13 +02:00
2021-04-13 17:00:38 +02:00
2021-05-13 11:07:16 +01:00
2021-09-09 18:06:13 +02:00
2021-04-13 17:00:38 +02:00
2021-09-09 18:06:13 +02:00
2021-04-13 17:00:38 +02:00
2021-05-17 09:25:32 +02:00
2021-09-09 18:06:13 +02:00
2021-02-10 11:03:39 +01:00
2021-09-09 18:06:13 +02:00
2021-08-20 16:43:20 +02:00
2021-08-20 16:43:20 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-10-15 16:03:22 +02:00
2021-04-13 17:00:38 +02:00
2021-09-09 18:06:13 +02:00
2021-04-13 17:00:38 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-04-13 17:00:38 +02:00
2021-03-08 22:41:40 +01:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-04-13 17:00:38 +02:00
2021-09-09 18:06:13 +02:00
2021-03-22 12:05:18 +01:00
2021-06-02 16:43:57 +02:00
2021-09-23 13:41:39 +02:00
2021-09-17 14:28:00 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00