Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SWIFT
SWIFTsim
Commits
8de0f9ad
Commit
8de0f9ad
authored
6 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
Free sort memory using new methods
parent
ae896e66
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/testActivePair.c
+1
-3
1 addition, 3 deletions
tests/testActivePair.c
with
1 addition
and
3 deletions
tests/testActivePair.c
+
1
−
3
View file @
8de0f9ad
...
@@ -162,9 +162,7 @@ struct cell *make_cell(size_t n, double *offset, double size, double h,
...
@@ -162,9 +162,7 @@ struct cell *make_cell(size_t n, double *offset, double size, double h,
}
}
void
clean_up
(
struct
cell
*
ci
)
{
void
clean_up
(
struct
cell
*
ci
)
{
free
(
ci
->
hydro
.
parts
);
cell_free_hydro_sorts
(
ci
);
for
(
int
k
=
0
;
k
<
13
;
k
++
)
if
(
ci
->
hydro
.
sort
[
k
]
!=
NULL
)
free
(
ci
->
hydro
.
sort
[
k
]);
free
(
ci
);
free
(
ci
);
}
}
...
...
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