diff options
author | Gregory Neil Shapiro <gshapiro@FreeBSD.org> | 2007-04-09 01:38:51 +0000 |
---|---|---|
committer | Gregory Neil Shapiro <gshapiro@FreeBSD.org> | 2007-04-09 01:38:51 +0000 |
commit | bfe691b2f75de2224c7ceb304ebcdef2b42d4179 (patch) | |
tree | 2164c380c4cbce635871c28ad6025cf3001cedaa /contrib/sendmail/include/sm/heap.h | |
parent | 24bda1641f24f4ccc456ba012a4dc6cf84b2ca5d (diff) | |
parent | d0cef73d40a409e3116f095b83633b1364e95741 (diff) |
This commit was generated by cvs2svn to compensate for changes in r168515,
which included commits to RCS files with non-trunk default branches.
Notes
Notes:
svn path=/head/; revision=168516
Diffstat (limited to 'contrib/sendmail/include/sm/heap.h')
-rw-r--r-- | contrib/sendmail/include/sm/heap.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/contrib/sendmail/include/sm/heap.h b/contrib/sendmail/include/sm/heap.h index 8b5637015375..cd346b3553d5 100644 --- a/contrib/sendmail/include/sm/heap.h +++ b/contrib/sendmail/include/sm/heap.h @@ -1,12 +1,12 @@ /* - * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers. + * Copyright (c) 2000-2001, 2006 Sendmail, Inc. and its suppliers. * All rights reserved. * * By using this file, you agree to the terms and conditions set * forth in the LICENSE file which can be found at the top level of * the sendmail distribution. * - * $Id: heap.h,v 1.22 2001/09/04 22:41:55 ca Exp $ + * $Id: heap.h,v 1.23 2006/08/15 00:53:46 ca Exp $ */ /* @@ -91,6 +91,16 @@ sm_fcalloc __P(( # define sm_heap_setgroup(g) (SmHeapGroup = (g)) # define sm_heap_newgroup() (SmHeapGroup = ++SmHeapMaxGroup) +#define SM_FREE(ptr) \ + do \ + { \ + if ((ptr) != NULL) \ + { \ + sm_free(ptr); \ + (ptr) = NULL; \ + } \ + } while (0) + extern int SmHeapGroup; extern int SmHeapMaxGroup; |