Commit 42289f7e authored by Felix Hamann's avatar Felix Hamann

fixed memory error

parent 9a39dac0
......@@ -42,6 +42,7 @@ create_error (
sam_ret_t *ret = malloc (sizeof (sam_ret_t));
ret->rc = -1;
ret->msg = msg;
ret->allocated = false;
return ret;
}
......@@ -86,7 +87,7 @@ handle_req (
ret = sam_eval (self->sam, msg);
}
sam_log_trace ("sending reply to client");
sam_log_tracef ("sending reply to client (%d)", ret->rc);
zsock_send (client_rep, "is", ret->rc, ret->msg);
if (ret->allocated) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment