memory leak fix

merge-requests/569/head
Benoit JUIN 2023-12-03 08:07:56 +01:00
rodzic 7efa04ff78
commit c1e9a341ab
1 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -631,13 +631,14 @@ scan_devices(){
const char *lp;
num_devices = 0;
if(first_device){
// -- free existing device we are doning a full re-scan
while (first_device){
Lexmark_Device *this_device = first_device;
first_device = first_device->next;
DBG (2, " free first_device\n");
free(first_device);
free(this_device);
}
first_device = NULL;
fp = sanei_config_open (LEXMARK_X2600_CONFIG_FILE);
if (!fp)
{