Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ac7009ab
Commit
ac7009ab
authored
Jan 09, 2015
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pg_upgrade: fix one-byte per empty db memory leak
Report by Tatsuo Ishii, Coverity
parent
c4fda148
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
contrib/pg_upgrade/relfilenode.c
contrib/pg_upgrade/relfilenode.c
+2
-4
No files found.
contrib/pg_upgrade/relfilenode.c
View file @
ac7009ab
...
@@ -110,10 +110,8 @@ transfer_all_new_dbs(DbInfoArr *old_db_arr, DbInfoArr *new_db_arr,
...
@@ -110,10 +110,8 @@ transfer_all_new_dbs(DbInfoArr *old_db_arr, DbInfoArr *new_db_arr,
pg_fatal
(
"old database
\"
%s
\"
not found in the new cluster
\n
"
,
pg_fatal
(
"old database
\"
%s
\"
not found in the new cluster
\n
"
,
old_db
->
db_name
);
old_db
->
db_name
);
n_maps
=
0
;
mappings
=
gen_db_file_maps
(
old_db
,
new_db
,
&
n_maps
,
old_pgdata
,
mappings
=
gen_db_file_maps
(
old_db
,
new_db
,
&
n_maps
,
old_pgdata
,
new_pgdata
);
new_pgdata
);
if
(
n_maps
)
if
(
n_maps
)
{
{
print_maps
(
mappings
,
n_maps
,
new_db
->
db_name
);
print_maps
(
mappings
,
n_maps
,
new_db
->
db_name
);
...
@@ -123,9 +121,9 @@ transfer_all_new_dbs(DbInfoArr *old_db_arr, DbInfoArr *new_db_arr,
...
@@ -123,9 +121,9 @@ transfer_all_new_dbs(DbInfoArr *old_db_arr, DbInfoArr *new_db_arr,
#endif
#endif
transfer_single_new_db
(
pageConverter
,
mappings
,
n_maps
,
transfer_single_new_db
(
pageConverter
,
mappings
,
n_maps
,
old_tablespace
);
old_tablespace
);
pg_free
(
mappings
);
}
}
/* We allocate something even for n_maps == 0 */
pg_free
(
mappings
);
}
}
return
;
return
;
...
...
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