You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pappl-retrofit/SOURCES/pappl-retrofit-use-after-fr...

18 lines
599 B

diff --git a/pappl-retrofit/cups-backends.c b/pappl-retrofit/cups-backends.c
index b5d1643..bbb80f4 100644
--- a/pappl-retrofit/cups-backends.c
+++ b/pappl-retrofit/cups-backends.c
@@ -586,11 +586,11 @@ _prCUPSDevList(pappl_device_cb_t cb,
// Check whether we have a duplicate and if so, skip it
if (cupsArrayFind(devices, device))
{
- free(device);
_prCUPSDevLog(&devlog_data, PAPPL_LOGLEVEL_DEBUG,
"Duplicate device from backend '%s' skipped: %s (URI: %s Device ID: %s)",
backends[i].name, info, device->device_uri,
device_id);
+ free(device);
}
else
{