Skip to content

Commit 3571e1e

Browse files
committed
udev/udev-configure-printer.c: map and usb_device_devpath strings leaks
1 parent 902f3c0 commit 3571e1e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

udev/udev-configure-printer.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,6 +1630,8 @@ do_add (const char *cmd, const char *devaddr)
16301630
if (!id.mfg || !id.mdl)
16311631
{
16321632
clear_device_id (&id);
1633+
free (map);
1634+
free (usb_device_devpath);
16331635
return 1;
16341636
}
16351637

@@ -1653,6 +1655,7 @@ do_add (const char *cmd, const char *devaddr)
16531655
{
16541656
syslog (LOG_ERR, "no corresponding CUPS device found");
16551657
clear_device_id (&id);
1658+
free (map);
16561659
return 0;
16571660
}
16581661

@@ -1706,6 +1709,7 @@ do_add (const char *cmd, const char *devaddr)
17061709

17071710
clear_device_id (&id);
17081711
free_device_uris (&device_uris);
1712+
free (map);
17091713
return 0;
17101714
}
17111715

0 commit comments

Comments
 (0)