Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nxssh
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Алексей Аляев
nxssh
Commits
696222ce
Commit
696222ce
authored
Nov 09, 2016
by
Stas Korobeynikov
Committed by
Pavel Vainerman
Oct 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add old openssh fuction xfree
parent
9702c816
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
xmalloc.c
xmalloc.c
+8
-0
xmalloc.h
xmalloc.h
+1
-0
No files found.
xmalloc.c
View file @
696222ce
...
@@ -49,6 +49,14 @@ xmalloc(size_t size)
...
@@ -49,6 +49,14 @@ xmalloc(size_t size)
return
ptr
;
return
ptr
;
}
}
void
xfree
(
void
*
ptr
)
{
if
(
ptr
==
NULL
)
fatal
(
"xfree: NULL pointer given as argument"
);
free
(
ptr
);
}
void
*
void
*
xcalloc
(
size_t
nmemb
,
size_t
size
)
xcalloc
(
size_t
nmemb
,
size_t
size
)
{
{
...
...
xmalloc.h
View file @
696222ce
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
void
ssh_malloc_init
(
void
);
void
ssh_malloc_init
(
void
);
void
*
xmalloc
(
size_t
);
void
*
xmalloc
(
size_t
);
void
xfree
(
void
*
);
void
*
xcalloc
(
size_t
,
size_t
);
void
*
xcalloc
(
size_t
,
size_t
);
void
*
xreallocarray
(
void
*
,
size_t
,
size_t
);
void
*
xreallocarray
(
void
*
,
size_t
,
size_t
);
char
*
xstrdup
(
const
char
*
);
char
*
xstrdup
(
const
char
*
);
...
...
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