bug 314036 use after free

- apply patch from Nickolai Zeldovich (nickolai-guest) to
  fix a use after free error
merge-requests/1/head
Stphane Voltz 2013-03-18 11:33:26 +01:00
rodzic b5369068ac
commit 10bd9ed2e5
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;
}