From 55b161da732fdf923b016be925932df15f49da55 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 11 Feb 2011 16:07:40 +0100 Subject: [PATCH] forb: Objects must be properly reference-counted This fixes some nasty segfaults. --- src/iop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iop.c b/src/iop.c index 1115c1f..6ba0ec3 100644 --- a/src/iop.c +++ b/src/iop.c @@ -757,7 +757,7 @@ forb_request_send(forb_request_t *req, unsigned index, CORBA_Environment *env) memset(exec_req, 0, sizeof(exec_req)); exec_req->request_type = FORB_EXEC_REQ_LOCAL; exec_req->input_request = req; - exec_req->obj = req->obj; + exec_req->obj = forb_object_duplicate(req->obj); exec_req->method_index = req->method_ind; exec_req->interface = req->interface; req->cdr_request.rptr = index; -- 2.39.2