kopia lustrzana https://gitlab.com/sane-project/backends
Merge branch 'fix_leak' into 'master'
fix small memory leak in scanimage option processing See merge request sane-project/backends!551escl-fix-sleep-mode
commit
9c00d111e6
|
@ -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