Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
ssg
Commits
18704c37
Commit
18704c37
authored
Apr 11, 2016
by
Jonathan Jenkins
Browse files
allow finalizing null ssgs
parent
f24c8eac
Pipeline
#56
skipped
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/ssg.c
View file @
18704c37
...
...
@@ -258,6 +258,8 @@ hg_return_t ssg_lookup(ssg_t s, hg_context_t *hgctx)
void
ssg_finalize
(
ssg_t
s
)
{
if
(
s
==
SSG_NULL
)
return
;
for
(
int
i
=
0
;
i
<
s
->
num_addrs
;
i
++
)
{
if
(
s
->
addrs
[
i
]
!=
HG_ADDR_NULL
)
HG_Addr_free
(
s
->
hgcl
,
s
->
addrs
[
i
]);
}
...
...
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