Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NP_TMcode
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Giacomo Mulas
NP_TMcode
Commits
77846eb6
Commit
77846eb6
authored
10 months ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Correct valgrind memory leaks
parent
d5bb62ce
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/libnptm/Configuration.cpp
+4
-3
4 additions, 3 deletions
src/libnptm/Configuration.cpp
src/trapping/clffft.cpp
+3
-0
3 additions, 0 deletions
src/trapping/clffft.cpp
with
7 additions
and
3 deletions
src/libnptm/Configuration.cpp
+
4
−
3
View file @
77846eb6
...
...
@@ -856,6 +856,7 @@ ScattererConfiguration* ScattererConfiguration::from_hdf5(const std::string& fil
}
// di loop
delete
[]
elements
;
status
=
hdf_file
->
close
();
delete
hdf_file
;
conf
=
new
ScattererConfiguration
(
nsph
,
configuration_count
,
...
...
@@ -873,8 +874,8 @@ ScattererConfiguration* ScattererConfiguration::from_hdf5(const std::string& fil
_wp
,
_xip
);
delete
[]
xi_vec
;
}
return
conf
;
}
...
...
This diff is collapsed.
Click to expand it.
src/trapping/clffft.cpp
+
3
−
0
View file @
77846eb6
...
...
@@ -326,15 +326,18 @@ void lffft(string data_file, string output_path) {
if
(
is
!=
2222
)
{
if
(
is
!=
1111
)
{
if
(
is
>
0
)
{
// Goes to 305
if
(
ac
)
delete
[]
ac
;
ac
=
new
dcomplex
[
cil
->
nlemt
]();
camp
(
ac
,
am0m
,
ws
,
cil
);
// Goes to 445
}
else
if
(
is
<
0
)
{
// Goes to 405
if
(
ac
)
delete
[]
ac
;
ac
=
new
dcomplex
[
cil
->
nlemt
]();
czamp
(
ac
,
amd
,
indam
,
ws
,
cil
);
// Goes to 445
}
}
else
{
if
(
ac
)
delete
[]
ac
;
ac
=
new
dcomplex
[
cil
->
nlemt
]();
samp
(
ac
,
tmsm
,
tmse
,
ws
,
cil
);
// Goes to 445
...
...
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