diff --git a/cache/src/tango_cache_pending.cpp b/cache/src/tango_cache_pending.cpp index 1caffbb..631f1a2 100644 --- a/cache/src/tango_cache_pending.cpp +++ b/cache/src/tango_cache_pending.cpp @@ -1,9 +1,10 @@ -#include"tango_cache_pending.h" -#include -#include -#include -#include -#include +#include "tango_cache_pending.h" +#include +#include +#include +#include +#include +#include time_t get_time_value(const char* field_value, const char* field_type) @@ -13,7 +14,7 @@ time_t get_time_value(const char* field_value, const char* field_type) field_value += strlen(field_type); field_value++; int len = strlen(field_value); - time_value = (char *)malloc(sizeof(char)*len); + time_value = ALLOC(char, len+1); int index = 0; while (field_value[index] != ',' && field_value[index] != '\r' && index < len) {