[zeromq-dev] pub sub memory leak problem
david starkweather
starkdg at comcast.net
Thu Aug 5 19:04:28 CEST 2010
no, because the string i am attaching to that message is a staticly
allocated string. But that is only in the pub example. The subscr
example (2nd program in link) is the one i rigged with dmalloc). That
one just uses zmq_msg_init() and zmq_recv()
On Thu, 2010-08-05 at 12:50 -0400, Matt Weinstein wrote:
> missing free_fn for zmq_msg_init_data?
>
> On Aug 5, 2010, at 12:15 PM, david starkweather wrote:
>
> > Hello,
> >
> > I have a memory leak in an application I am developing here. The
> > application uses the pub/sub model using zeromq. I have managed to
> > replicate the error in a simple test case in the link below.
> > Perhaps I
> > am not closing the messages properly, or doing proper cleanup. But I
> > think I am.
> >
> > The code in the link below details the publisher program first, then
> > the
> > subscriber program i am using. I outfitted the latter with dmalloc
> > and
> > then included the logfile from dmalloc at the end. The log file
> > includes one published message.
> >
> > http://pastebin.com/DHaPNWQ5
> >
> > thanks.
> > dgs
> >
> >
> >
> >> zeromq-dev mailing list
> >> zeromq-dev at lists.zeromq.org
> >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
More information about the zeromq-dev
mailing list