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
03a7cd17
Commit
03a7cd17
authored
Apr 05, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for memory leak.
parent
39740d75
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
src/backend/utils/init/miscinit.c
src/backend/utils/init/miscinit.c
+5
-5
src/backend/utils/init/postinit.c
src/backend/utils/init/postinit.c
+3
-3
src/include/miscadmin.h
src/include/miscadmin.h
+3
-3
No files found.
src/backend/utils/init/miscinit.c
View file @
03a7cd17
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.1
2 1998/02/26 04:38:06
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.1
3 1998/04/05 05:51:58
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -229,20 +229,20 @@ GetProcessingMode()
* Returns path to database.
*
*/
char
*
c
onst
c
har
*
GetDatabasePath
()
{
return
strdup
(
DatabasePath
)
;
return
DatabasePath
;
}
/*
* GetDatabaseName --
* Returns name of database.
*/
char
*
c
onst
c
har
*
GetDatabaseName
()
{
return
strdup
(
DatabaseName
)
;
return
DatabaseName
;
}
void
...
...
src/backend/utils/init/postinit.c
View file @
03a7cd17
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.2
5 1998/02/26 04:38:12
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.2
6 1998/04/05 05:52:00
momjian Exp $
*
* NOTES
* InitPostgres() is the function called from PostgresMain
...
...
@@ -195,8 +195,8 @@ VerifySystemDatabase()
static
void
VerifyMyDatabase
()
{
char
*
name
;
char
*
myPath
;
c
onst
c
har
*
name
;
c
onst
c
har
*
myPath
;
/* Failure reason returned by some function. NULL if no failure */
char
*
reason
;
...
...
src/include/miscadmin.h
View file @
03a7cd17
...
...
@@ -11,7 +11,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: miscadmin.h,v 1.2
0 1998/02/26 04:39:48
momjian Exp $
* $Id: miscadmin.h,v 1.2
1 1998/04/05 05:52:10
momjian Exp $
*
* NOTES
* some of the information in this file will be moved to
...
...
@@ -116,8 +116,8 @@ extern int GetDatabaseInfo(char *name, Oid *owner, char *path);
extern
char
*
ExpandDatabasePath
(
char
*
path
);
/* now in utils/init/miscinit.c */
extern
char
*
GetDatabasePath
(
void
);
extern
char
*
GetDatabaseName
(
void
);
extern
c
onst
c
har
*
GetDatabasePath
(
void
);
extern
c
onst
c
har
*
GetDatabaseName
(
void
);
extern
void
SetDatabaseName
(
char
*
name
);
extern
void
SetDatabasePath
(
char
*
path
);
extern
char
*
getpgusername
(
void
);
...
...
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