diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2007-04-09 01:38:51 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2007-04-09 01:38:51 +0000 |
commit | 97853bac963c5d3bed1b2cc8456b52dc100a3a16 (patch) | |
tree | 2164c380c4cbce635871c28ad6025cf3001cedaa /contrib/sendmail/include/sm/heap.h | |
parent | a26ee9422b3dd49a0146ab2eec3f21acf30e399c (diff) | |
parent | 14e22b52d4375b164f9fa21c0ab3abd9837e823f (diff) | |
download | FreeBSD-src-97853bac963c5d3bed1b2cc8456b52dc100a3a16.zip FreeBSD-src-97853bac963c5d3bed1b2cc8456b52dc100a3a16.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r168515,
which included commits to RCS files with non-trunk default branches.
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 8b56370..cd346b3 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; |