kopia lustrzana https://gitlab.com/sane-project/backends
Free heap memory, acquired via strdup for
devname, in sanei_usb_close().merge-requests/1/head
rodzic
74eb71fa19
commit
ef5820ce62
|
@ -2039,6 +2039,10 @@ sanei_usb_close (SANE_Int dn)
|
||||||
DBG (1, "sanei_usb_close: libusb support missing\n");
|
DBG (1, "sanei_usb_close: libusb support missing\n");
|
||||||
#endif
|
#endif
|
||||||
devices[dn].open = SANE_FALSE;
|
devices[dn].open = SANE_FALSE;
|
||||||
|
if (devices[dn].devname) {
|
||||||
|
free(devices[dn].devname);
|
||||||
|
devices[dn].devname = NULL;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue