Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GStreamer
gst-plugins-bad
Commits
aaee2820
Commit
aaee2820
authored
Mar 26, 2019
by
Seungha Yang
🐑
Committed by
Matthew Waters
Mar 26, 2019
Browse files
nvenc: Don't leak CUDA device memory
Allocated device memory should be freed with cuMemFree
parent
d0f2f262
Pipeline
#26435
passed with stages
in 32 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sys/nvenc/gstnvbaseenc.c
View file @
aaee2820
...
...
@@ -998,6 +998,12 @@ gst_nv_base_enc_free_buffers (GstNvBaseEnc * nvenc)
GST_ERROR_OBJECT
(
nvenc
,
"Failed to unregister resource %p, ret %d"
,
in_gl_resource
,
nv_ret
);
nv_ret
=
cuMemFree
((
CUdeviceptr
)
in_gl_resource
->
cuda_pointer
);
if
(
nv_ret
!=
NV_ENC_SUCCESS
)
{
GST_ERROR_OBJECT
(
nvenc
,
"Failed to free CUDA device memory, ret %d"
,
nv_ret
);
}
g_free
(
in_gl_resource
);
cuCtxPopCurrent
(
NULL
);
}
else
...
...
wangzhanjun
@wangzj0601
mentioned in issue
#947 (closed)
·
Apr 09, 2019
mentioned in issue
#947 (closed)
mentioned in issue #947
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment