[rrd-users] why does/should rrd_create() alter argv?

Tobias Oetiker tobi at oetiker.ch
Thu Apr 28 06:23:02 CEST 2011


Hi,

Yesterday Pablo Sanchez wrote:

> [ Comments below, in line ]
>
> On Wednesday 27 April 2011 at 5:14 pm, Rick Jones penned
> about "[rrd-users] why does/should rrd_create()  alter argv?"
>
> > I'm concerned there is a memory leak since rrd_create() is shuffling
> > things around.
>
> Howdy,
>
> When I read your post, I thought:  leaky memory.  Have you run
> `valgrind' on your code?  I believe Tobi is pretty good about running
> it on his code so while it's possible RRD has an issue, it may be more
> probable that it's in your code.

the argv re-shuffeling is done by getopt_long ...

cheers
tobi

>
> Cheers,
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-users mailing list