Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
883dd429
Commit
883dd429
authored
Apr 18, 2005
by
Paul Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct memory leaks in namelist code for derived types
From-SVN: r98352
parent
8a731165
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
libgfortran/ChangeLog
+7
-2
libgfortran/io/list_read.c
+10
-2
No files found.
libgfortran/ChangeLog
View file @
883dd429
2005-04-18 Paul Thomas <pault@gcc.gnu.org>
* io/list_read.c (nml_touch_nodes, nml_read_obj,
nml_get_obj_data): Fix memory leaks in code for derived types.
2005-04-11 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2005-04-11 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR libfortran/20950
PR libfortran/20950
...
@@ -16,11 +21,11 @@
...
@@ -16,11 +21,11 @@
2005-04-17 Paul Thomas <pault@gcc.gnu.org>
2005-04-17 Paul Thomas <pault@gcc.gnu.org>
* io/list_read.c (eat_separator): at_eol = 1 replaced(zapped at some time?).
* io/list_read.c (eat_separator): at_eol = 1 replaced
(zapped at some time?).
2005-04-17 Paul Thomas <pault@gcc.gnu.org>
2005-04-17 Paul Thomas <pault@gcc.gnu.org>
PR libgfortran/12884
PR libgfortran/12884
PR libgfortran/17285
PR libgfortran/17285
PR libgfortran/18122
PR libgfortran/18122
...
...
libgfortran/io/list_read.c
View file @
883dd429
...
@@ -1673,6 +1673,7 @@ nml_touch_nodes (namelist_info * nl)
...
@@ -1673,6 +1673,7 @@ nml_touch_nodes (namelist_info * nl)
else
else
break
;
break
;
}
}
free_mem
(
ext_name
);
return
;
return
;
}
}
...
@@ -1914,10 +1915,16 @@ nml_read_obj (namelist_info * nl, index_type offset)
...
@@ -1914,10 +1915,16 @@ nml_read_obj (namelist_info * nl, index_type offset)
{
{
if
(
nml_read_obj
(
cmp
,
(
index_type
)(
pdata
-
nl
->
mem_pos
))
==
FAILURE
)
if
(
nml_read_obj
(
cmp
,
(
index_type
)(
pdata
-
nl
->
mem_pos
))
==
FAILURE
)
return
FAILURE
;
{
free_mem
(
obj_name
);
return
FAILURE
;
}
if
(
input_complete
)
if
(
input_complete
)
return
SUCCESS
;
{
free_mem
(
obj_name
);
return
SUCCESS
;
}
}
}
free_mem
(
obj_name
);
free_mem
(
obj_name
);
...
@@ -2105,6 +2112,7 @@ get_name:
...
@@ -2105,6 +2112,7 @@ get_name:
strcpy
(
ext_name
,
root_nl
->
var_name
);
strcpy
(
ext_name
,
root_nl
->
var_name
);
strcat
(
ext_name
,
saved_string
);
strcat
(
ext_name
,
saved_string
);
nl
=
find_nml_node
(
ext_name
);
nl
=
find_nml_node
(
ext_name
);
free_mem
(
ext_name
);
}
}
else
else
nl
=
find_nml_node
(
saved_string
);
nl
=
find_nml_node
(
saved_string
);
...
...
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