mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
fprint-list-supported-devices: Do not double-free usb_list
We were leaking the spi_list instead.
This commit is contained in:
@@ -132,7 +132,7 @@ main (int argc, char **argv)
|
||||
g_print ("%s", (char *) l->data);
|
||||
g_print ("\n");
|
||||
|
||||
g_list_free_full (usb_list, g_free);
|
||||
g_list_free_full (g_steal_pointer (&usb_list), g_free);
|
||||
|
||||
g_print ("## SPI devices\n");
|
||||
g_print ("\n");
|
||||
@@ -146,7 +146,7 @@ main (int argc, char **argv)
|
||||
g_print ("%s", (char *) l->data);
|
||||
g_print ("\n");
|
||||
|
||||
g_list_free_full (usb_list, g_free);
|
||||
g_list_free_full (g_steal_pointer (&spi_list), g_free);
|
||||
|
||||
|
||||
g_hash_table_destroy (printed);
|
||||
|
||||
Reference in New Issue
Block a user