diff options
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r-- | source3/lib/util.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 71f440eae5..a824887e88 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1662,6 +1662,18 @@ void *Realloc(void *p,size_t size) /**************************************************************************** +free memory, checks for NULL +****************************************************************************/ +void safe_free(void *p) +{ + if (p != NULL) + { + free(p); + } +} + + +/**************************************************************************** get my own name and IP ****************************************************************************/ BOOL get_myname(char *my_name) |