erlang plugin: Have "send_error" free the *entire* term.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 14 Nov 2009 09:15:44 +0000 (10:15 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 14 Nov 2009 09:15:44 +0000 (10:15 +0100)
src/erlang.c

index 93b2441..96f77ae 100644 (file)
@@ -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 */