Commit ec5683f3 authored by Anmol Vatsa's avatar Anmol Vatsa

fix issue with node_info after node_reset

parent df4c0a60
...@@ -998,7 +998,7 @@ inline int _handle_remote_invoke_messages_node_reset(struct RPCEndPoint* endpoin ...@@ -998,7 +998,7 @@ inline int _handle_remote_invoke_messages_node_reset(struct RPCEndPoint* endpoin
c_log_err("ERROR:%s:couldn't reset node for cap_id[=%lu] from received request", __func__, req_node_reset->cap_id); c_log_err("ERROR:%s:couldn't reset node for cap_id[=%lu] from received request", __func__, req_node_reset->cap_id);
res = -4; res = -4;
//TODO: Can't just return. have to send back error response //TODO: Can't just return. have to send back error response
goto fail_unlock; goto fail_unlock1;
} }
//Prepare RPC response //Prepare RPC response
ControllerRPC__RPCMessage *rpc = malloc(sizeof(ControllerRPC__RPCMessage)); ControllerRPC__RPCMessage *rpc = malloc(sizeof(ControllerRPC__RPCMessage));
...@@ -1037,6 +1037,8 @@ inline int _handle_remote_invoke_messages_node_reset(struct RPCEndPoint* endpoin ...@@ -1037,6 +1037,8 @@ inline int _handle_remote_invoke_messages_node_reset(struct RPCEndPoint* endpoin
free(response); free(response);
free(rpc); free(rpc);
fail_unlock1:
cap_cnode_put(req_node_cnode);
fail_unlock: fail_unlock:
cn_obj_unlock(requester_proxy->principal); cn_obj_unlock(requester_proxy->principal);
......
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