X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/e055a386af9c83d4a04e72f7c58805f1197df8be..dcbde23605bb045df116a1dd522d4ddb4d9288fa:/putty.h diff --git a/putty.h b/putty.h index 45f762f7..a2bdeb1a 100644 --- a/putty.h +++ b/putty.h @@ -354,21 +354,7 @@ void random_get_savedata(void **data, int *len); * Exports from misc.c. */ -/* #define MALLOC_LOG do this if you suspect putty of leaking memory */ -#ifdef MALLOC_LOG -#define smalloc(z) (mlog(__FILE__,__LINE__), safemalloc(z)) -#define srealloc(y,z) (mlog(__FILE__,__LINE__), saferealloc(y,z)) -#define sfree(z) (mlog(__FILE__,__LINE__), safefree(z)) -void mlog(char *, int); -#else -#define smalloc safemalloc -#define srealloc saferealloc -#define sfree safefree -#endif - -void *safemalloc(size_t); -void *saferealloc(void *, size_t); -void safefree(void *); +#include "puttymem.h" /* * Exports from version.c.