Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
90a103e7
Unverified
Commit
90a103e7
authored
Jun 22, 2020
by
Jinjing Zhou
Committed by
GitHub
Jun 22, 2020
Browse files
fix byte array leak (#1679)
Co-authored-by:
Chao Ma
<
mctt90@gmail.com
>
parent
558673e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/dgl/runtime/packed_func.h
include/dgl/runtime/packed_func.h
+1
-1
No files found.
include/dgl/runtime/packed_func.h
View file @
90a103e7
...
...
@@ -779,7 +779,7 @@ class DGLRetValue : public DGLPODValue_ {
void
Clear
()
{
if
(
type_code_
==
kNull
)
return
;
switch
(
type_code_
)
{
case
kStr
:
delete
ptr
<
std
::
string
>
();
break
;
case
kStr
:
case
kBytes
:
delete
ptr
<
std
::
string
>
();
break
;
case
kFuncHandle
:
delete
ptr
<
PackedFunc
>
();
break
;
case
kModuleHandle
:
delete
ptr
<
Module
>
();
break
;
case
kObjectHandle
:
delete
ptr
<
std
::
shared_ptr
<
Object
>
>
();
break
;
...
...
Write
Preview
Markdown
is supported
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