kopia lustrzana https://gitlab.com/sane-project/backends
fix small memory leak in scanimage option processing
rodzic
bb84652c3c
commit
aa228faa13
|
@ -1144,6 +1144,8 @@ process_backend_option (SANE_Handle device, int optnum, const char *optarg)
|
|||
return;
|
||||
}
|
||||
set_option (device, optnum, valuep);
|
||||
if (opt->type == SANE_TYPE_STRING && valuep)
|
||||
free(valuep);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Ładowanie…
Reference in New Issue