Michal Privoznik b3a67644c3 nodedevmdevctltest: Fix two memleaks
There are two memleaks inside of nodedevmdevctltest:

1) In the testCommandDryRunCallback() - when appending lines to
   stdinbuf the pointer is overwritten without freeing the old
   memory it pointed to.

2) In testMdevctlModify() the livecmd variable is reused and
   since its marked as g_autoptr() the first use leaks.

Fixes: 582f27ff15f14fa0e913278c0a2ca9840c3f12f5
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
2024-02-26 14:35:52 +01:00
..
2024-02-20 17:29:27 +01:00
2024-02-20 17:29:27 +01:00
2023-04-06 12:48:22 +02:00
2023-12-14 17:10:22 +01:00
2023-02-14 13:59:45 +01:00
2023-12-14 17:10:22 +01:00
2023-04-06 12:48:22 +02:00
2023-03-13 13:29:07 +01:00
2023-04-04 10:52:15 +02:00
2023-03-13 13:29:07 +01:00
2024-02-19 10:29:24 +01:00
2024-02-19 10:29:24 +01:00