From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 0F6897FB13 for ; Thu, 4 Dec 2014 07:09:12 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of kennethadammiller@gmail.com) identity=pra; client-ip=209.85.218.51; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="kennethadammiller@gmail.com"; x-sender="kennethadammiller@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of kennethadammiller@gmail.com designates 209.85.218.51 as permitted sender) identity=mailfrom; client-ip=209.85.218.51; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="kennethadammiller@gmail.com"; x-sender="kennethadammiller@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-oi0-f51.google.com) identity=helo; client-ip=209.85.218.51; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="kennethadammiller@gmail.com"; x-sender="postmaster@mail-oi0-f51.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArwBAKL5f1TRVdozlWdsb2JhbABagkOBFVgEgwHDWYYagQ4HFgEBAQEBEQEBAQEHDQkJEjCEGxEdARseAxIJAQY3AiQBEQEFASI1iAYBAxINsASDJT0xizCBbIMHiysKGScNWYUFAQsBGQEBBA6NIYMzgnyBUQWKU4lThjSSJBIlgRCCCYI6ITCCRQEBAQ X-IPAS-Result: ArwBAKL5f1TRVdozlWdsb2JhbABagkOBFVgEgwHDWYYagQ4HFgEBAQEBEQEBAQEHDQkJEjCEGxEdARseAxIJAQY3AiQBEQEFASI1iAYBAxINsASDJT0xizCBbIMHiysKGScNWYUFAQsBGQEBBA6NIYMzgnyBUQWKU4lThjSSJBIlgRCCCYI6ITCCRQEBAQ X-IronPort-AV: E=Sophos;i="5.07,513,1413237600"; d="scan'208";a="91588257" Received: from mail-oi0-f51.google.com ([209.85.218.51]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 04 Dec 2014 07:09:11 +0100 Received: by mail-oi0-f51.google.com with SMTP id e131so11947237oig.38 for ; Wed, 03 Dec 2014 22:09:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=KboHwUHhhkk5sxS6uVzihcl11RPnw2+udvXDRDH2TsE=; b=m1NP4nnud8EqEbuYxxsQLxDw+Vvy+UDKohmNRs0ro1J4T9JFwf4VtirYtTDWuQ7P4j /AItAtKHPzOTT3DvTRIleFDA4g4KwdkAARuGmlNdbcnSq38m3xN5uGoYjlkbRtrTfszn YzyAaf/qrVYfhm0hdf400xUBJqU1NLhFTZNSmsmN1Gn6wVIfyjWRpsfDIj5TXNlvbvqh VpeCKnRuWQz8Sew8S8c3sYkCWlst/xd88Wz+7d/Rs4Z2S+FXqbZi3p9vbq4sDa1HSmR5 tIz0MJeWTo+/vACYGCQg70H8hK1CuCBRtwO08Ky9UTMi/Knp2DNVoOWikR2L4oWCKyKc 892A== MIME-Version: 1.0 X-Received: by 10.202.59.137 with SMTP id i131mr5215770oia.114.1417673349867; Wed, 03 Dec 2014 22:09:09 -0800 (PST) Received: by 10.182.197.1 with HTTP; Wed, 3 Dec 2014 22:09:09 -0800 (PST) Date: Thu, 4 Dec 2014 01:09:09 -0500 Message-ID: From: Kenneth Adam Miller To: caml users Content-Type: multipart/alternative; boundary=001a113cc7f26d2fd305095dcc07 Subject: [Caml-list] Potential OCaml-ZMQ memory management problems --001a113cc7f26d2fd305095dcc07 Content-Type: text/plain; charset=UTF-8 I'm using ocaml-zmq (https://github.com/issuu/ocaml-zmq) and I think I'm encountering a memory management issue. I could be wrong however, but basically the issue (I think) is I have a rather large set of messages to send via zmq, and I'm getting a segfault. Does anybody know if I need to free the strings received from zmq recv functions in ocaml? If so how do I do that from ocaml? There's no code because this is just a general novice ocaml questions. --001a113cc7f26d2fd305095dcc07 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'm using ocaml-zmq (https://github= .com/issuu/ocaml-zmq) and I think I'm encountering a memory management issue. I co= uld be wrong however, but basically the issue (I think) is I have a rather = large set of messages to send via zmq, and I'm getting a segfault.=C2= =A0

Does anybody= know if I need to free the strings received from zmq recv functions in oca= ml? If so how do I do that from ocaml?

There's no code because this is just a general no= vice ocaml questions.
--001a113cc7f26d2fd305095dcc07--