Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
e8b8139c
Commit
e8b8139c
authored
Jul 30, 2016
by
Matthieu Schaller
Browse files
Recurse to clean the content of all cells
parent
62d46d9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
e8b8139c
...
...
@@ -711,4 +711,11 @@ void cell_clean_links(struct cell *c, void *data) {
/**
* @brief Frees up the memory allocated for this #cell
*/
void
cell_clean
(
struct
cell
*
c
)
{
free
(
c
->
sort
);
}
void
cell_clean
(
struct
cell
*
c
)
{
free
(
c
->
sort
);
/* Recurse */
for
(
int
k
=
0
;
k
<
8
;
k
++
)
if
(
c
->
progeny
[
k
])
cell_clean
(
c
->
progeny
[
k
]);
}
src/engine.c
View file @
e8b8139c
...
...
@@ -3178,8 +3178,8 @@ void engine_init(struct engine *e, struct space *s,
#if defined(HAVE_SETAFFINITY)
if
(
with_aff
)
{
free
(
cpuid
);
free
(
buf
);
}
free
(
buf
);
#endif
/* Wait for the runner threads to be in place. */
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment