From: Florian Forster Date: Sat, 14 Nov 2009 09:15:44 +0000 (+0100) Subject: erlang plugin: Have "send_error" free the *entire* term. X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=43ea89b8f320b54cc6d1bb05c5cc13488bb438c9 erlang plugin: Have "send_error" free the *entire* term. --- diff --git a/src/erlang.c b/src/erlang.c index 93b24416..96f77aee 100644 --- a/src/erlang.c +++ b/src/erlang.c @@ -127,7 +127,7 @@ static int send_error (int fd, ETERM *to, const char *message) /* {{{ */ else status = 0; - erl_free_term (reply); + erl_free_compound (reply); return (status); } /* }}} int send_error */