Re: segfault with sane-umax

Peter Daum (gator@cs.tu-berlin.de)
Thu, 9 Oct 1997 12:22:52 +0200 (MET DST)

On Thu, 9 Oct 1997, Didier Carlier wrote:

[...]

> I don't have the sources here, but that reminds me that there used to
> be a bug in sane_exit(). The line which looks like
> 'free(&(dev->xxx));' should not have been there.

.. but it still was in umax.c. Now it works fine. :-))

Thanks,
Peter

- - - - - 8< - - - - - 8< - - - - - 8< - - - - - 8< - - - - - 8< - - - - -

--- umax.c~ Thu Aug 21 02:47:58 1997
+++ umax.c Thu Oct 9 12:07:45 1997
@@ -1011,7 +1011,6 @@
{
next = dev->next;
free(dev->us.devicename);
- free(&(dev->us));
free(dev);
}
}

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com