Esme Povirk (@madewokherd) commented about dlls/sane.ds/ui.c:
sf = calloc( opt->size, sizeof(int) );
sane_option_get_value(opt->optno, sf );
if (opt->constraint.range.quant)
pos = *sf / opt->constraint.range.quant;
else
pos = MulDiv( *sf, 100, 65536 );
option->type = opt->type;
option->value.int_val = pos;
free(sf);
}
- }
+}
+static BOOL save_cfg_data(HWND hwnd, WCHAR file_path[128], int type, int optno) +{
- ScannerOption *options = malloc((cntOptionsExist + 1) * sizeof(ScannerOption));
This is never freed.