Debian Codegraph @

extern/metis/GKlib/memory.c

raw
1 /*!
2 \file memory.c
3 \brief This file contains various allocation routines
4
5 The allocation routines included are for 1D and 2D arrays of the
6 most datatypes that GKlib support. Many of these routines are
7 defined with the help of the macros in gk_memory.h. These macros
8 can be used to define other memory allocation routines.
9
10 \date Started 4/3/2007
11 \author George
12 \version\verbatim $Id: memory.c 21050 2017-05-25 03:53:58Z karypis $ \endverbatim
13 */
14
15
16 #include "GKlib.h"
17
18 void gk_free(void **ptr1)
19 {
20 free(*ptr1);
21 *ptr1 = NULL;
22 }
23