On Sun, 11 Sep 2016 04:40:56 +0200 Jan Kandziora <j...@gmx.de> wrote:
> Am 11.09.2016 um 04:27 schrieb Michael Hughes: > > In the man page it says that you need to do a free() after a > > OW_get. Does this need to be done on each call to OW_get if you are > > going to call OW_get again? > > > You have to free() each time because each time OW_get() does an > malloc() internally. > > (module/owlib/src/c/ow_get.c, copy_buffer(), line 58) > > Kind regards > > Jan > Jan, Thanks for the fast reply. I was pretty sure of the answer before I asked it, I just wanted to double check. I have converted my 1-wire programs that I wrote back in 1998 using Robert Mancheck's library. I had added code to it to read some of the other chips that I was using that weren't in the library. I have read about owfs for sometime now and had never gotten my code for the DS2450 to work right, so I decided to switch to owfs C API. Thanks for everyone's work on the project and I hope that I will be able to give something back at sometime. -- Michael D Hughes Loghome living is the best! mich...@thehugheslogcabin.net
pgpaSqrfUiwOs.pgp
Description: OpenPGP digital signature
------------------------------------------------------------------------------
_______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers