Don't free memory that's not alloced

DEVEL_2_0_BRANCH-1
Henning Geinitz 2001-04-29 19:42:19 +00:00
rodzic a1cacda510
commit 308616ddd3
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -128,7 +128,8 @@ sanei_w_array (Wire *w, SANE_Word *len_ptr, void **v, WireCodecFunc w_element,
if (w->direction == WIRE_FREE)
{
free (*v);
if (*v)
free (*v);
return;
}