kopia lustrzana https://gitlab.com/sane-project/backends
bug 314036 use after free
- apply patch from Nickolai Zeldovich (nickolai-guest) to fix a use after free errormerge-requests/1/head
rodzic
b5369068ac
commit
10bd9ed2e5
|
@ -2885,9 +2885,9 @@ sane_start (SANE_Handle handle)
|
|||
|
||||
s->buffer = malloc(s->dev->info.bufsize);
|
||||
if (!s->buffer) {
|
||||
free(s);
|
||||
sanei_scsi_close(s->fd);
|
||||
s->fd = -1;
|
||||
free(s);
|
||||
return SANE_STATUS_NO_MEM;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue