Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
06eb057e
Commit
06eb057e
authored
7 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
add grpc_slice_unref to fix leaks
parent
52bcda9f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/csharp/ext/grpc_csharp_ext.c
+11
-3
11 additions, 3 deletions
src/csharp/ext/grpc_csharp_ext.c
with
11 additions
and
3 deletions
src/csharp/ext/grpc_csharp_ext.c
+
11
−
3
View file @
06eb057e
...
@@ -413,8 +413,14 @@ GPR_EXPORT grpc_call *GPR_CALLTYPE grpcsharp_channel_create_call(
...
@@ -413,8 +413,14 @@ GPR_EXPORT grpc_call *GPR_CALLTYPE grpcsharp_channel_create_call(
host_slice
=
grpc_slice_from_copied_string
(
host
);
host_slice
=
grpc_slice_from_copied_string
(
host
);
host_slice_ptr
=
&
host_slice
;
host_slice_ptr
=
&
host_slice
;
}
}
return
grpc_channel_create_call
(
channel
,
parent_call
,
propagation_mask
,
cq
,
grpc_call
*
ret
=
method_slice
,
host_slice_ptr
,
deadline
,
NULL
);
grpc_channel_create_call
(
channel
,
parent_call
,
propagation_mask
,
cq
,
method_slice
,
host_slice_ptr
,
deadline
,
NULL
);
grpc_slice_unref
(
method_slice
);
if
(
host
!=
NULL
)
{
grpc_slice_unref
(
host_slice
);
}
return
ret
;
}
}
GPR_EXPORT
grpc_connectivity_state
GPR_CALLTYPE
GPR_EXPORT
grpc_connectivity_state
GPR_CALLTYPE
...
@@ -805,7 +811,9 @@ GPR_EXPORT grpc_call_error GPR_CALLTYPE grpcsharp_call_send_status_from_server(
...
@@ -805,7 +811,9 @@ GPR_EXPORT grpc_call_error GPR_CALLTYPE grpcsharp_call_send_status_from_server(
ops
[
nops
].
reserved
=
NULL
;
ops
[
nops
].
reserved
=
NULL
;
nops
++
;
nops
++
;
}
}
return
grpcsharp_call_start_batch
(
call
,
ops
,
nops
,
ctx
,
NULL
);
grpc_call_error
ret
=
grpcsharp_call_start_batch
(
call
,
ops
,
nops
,
ctx
,
NULL
);
grpc_slice_unref
(
status_details_slice
);
return
ret
;
}
}
GPR_EXPORT
grpc_call_error
GPR_CALLTYPE
GPR_EXPORT
grpc_call_error
GPR_CALLTYPE
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment