blob: e4af84445dee68fcd7f3af48bf4b861574be61d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef MEM_H
# define MEM_H
/* Use _asn1_afree() when calling alloca, or
* memory leaks may occur in systems which do not
* support alloca.
*/
#ifdef HAVE_ALLOCA
# define _asn1_alloca alloca
# define _asn1_afree(x)
#else
# define _asn1_alloca _asn1_malloc
# define _asn1_afree _asn1_free
#endif /* HAVE_ALLOCA */
#define _asn1_malloc malloc
#define _asn1_free free
#define _asn1_calloc calloc
#define _asn1_realloc realloc
#define _asn1_strdup strdup
#endif /* MEM_H */
|