Skip to content

Commit 54a6312

Browse files
committed
udev/udev-configure-printer.c:848: error[memleak]: Memory leak: devicefilepath
1 parent 30e1125 commit 54a6312

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

udev/udev-configure-printer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,7 @@ device_id_from_devpath (struct udev *udev, const char *devpath,
824824
*/
825825
syslog (LOG_DEBUG, "Device already handled");
826826
free (usb_device_devpath);
827+
free (devicefilepath);
827828
return NULL;
828829
}
829830

@@ -845,6 +846,7 @@ device_id_from_devpath (struct udev *udev, const char *devpath,
845846
parse_device_id (device_id, id);
846847

847848
udev_device_unref (dev);
849+
free (devicefilepath);
848850
return usb_device_devpath;
849851
}
850852

0 commit comments

Comments
 (0)