diff --git a/n/a.c b/n/a.c index 4af6b74bc9..8571fe4f95 100644 --- a/n/a.c +++ b/n/a.c @@ -526,8 +526,6 @@ u3a_calloc(size_t num_i, size_t len_i) c3_w* out_w = u3a_malloc(byt_i); memset(out_w, 0, byt_i); - fprintf(stderr,"callocing %d %d\r\n",num_i,len_i); - return out_w; } @@ -623,6 +621,9 @@ u3a_realloc2(void* lag_v, size_t old_i, size_t new_i) void u3a_free(void* tox_v) { + if (NULL == tox_v) + return; + c3_w* tox_w = tox_v; c3_w pad_w = tox_w[-1]; c3_w* org_w = tox_w - (pad_w + 1); diff --git a/outside/commonmark/src/config.h.in b/outside/commonmark/src/config.h.in index 86a03d5c37..8769e041d9 100644 --- a/outside/commonmark/src/config.h.in +++ b/outside/commonmark/src/config.h.in @@ -16,7 +16,7 @@ #define CMARK_ATTRIBUTE(list) #endif -#if 0 +#if 1 #ifndef U3_ALL #define U3_ALL #define malloc(a) u3a_malloc(a) diff --git a/v/unix.c b/v/unix.c index 1223de54ce..a66ed8e6e0 100644 --- a/v/unix.c +++ b/v/unix.c @@ -822,6 +822,10 @@ _unix_dir_ankh(u3_udir* dir_u) if ( 0 != u3h(ank) ) { pam = u3kdb_put(pam, pre, ank); } + else + { + u3z(ank); + } } if ( !dir_u->par_u->par_u ) { // toplevel