Browse Source

Test

etomic
jl777 8 years ago
parent
commit
11810f2ece
  1. 3
      iguana/exchanges/LP_nativeDEX.c

3
iguana/exchanges/LP_nativeDEX.c

@ -1203,6 +1203,7 @@ int32_t zeroval() { return(0); }
void *LP_alloc(uint64_t len) void *LP_alloc(uint64_t len)
{ {
return(calloc(1,len));
struct LP_memory_list *mp; struct LP_memory_list *mp;
mp = calloc(1,sizeof(*mp) + len); mp = calloc(1,sizeof(*mp) + len);
//if ( len == 72 ) //if ( len == 72 )
@ -1225,6 +1226,8 @@ void *LP_realloc(void *ptr,uint64_t len)
void LP_free(void *ptr) void LP_free(void *ptr)
{ {
static uint32_t lasttime,unknown; static uint32_t lasttime,unknown;
free(ptr);
return;
uint32_t now; char str[65]; int32_t n,lagging; uint64_t total = 0; struct LP_memory_list *mp,*tmp; uint32_t now; char str[65]; int32_t n,lagging; uint64_t total = 0; struct LP_memory_list *mp,*tmp;
if ( (now= (uint32_t)time(NULL)) > lasttime+6 ) if ( (now= (uint32_t)time(NULL)) > lasttime+6 )
{ {

Loading…
Cancel
Save