|
@ -7,6 +7,7 @@ |
|
|
#include <ccan/str/hex/hex.h> |
|
|
#include <ccan/str/hex/hex.h> |
|
|
#include <ccan/tal/str/str.h> |
|
|
#include <ccan/tal/str/str.h> |
|
|
#include <ccan/time/time.h> |
|
|
#include <ccan/time/time.h> |
|
|
|
|
|
#include <common/memleak.h> |
|
|
#include <common/pseudorand.h> |
|
|
#include <common/pseudorand.h> |
|
|
#include <common/utils.h> |
|
|
#include <common/utils.h> |
|
|
#include <errno.h> |
|
|
#include <errno.h> |
|
@ -112,7 +113,7 @@ struct log_book *new_log_book(const tal_t *ctx, |
|
|
|
|
|
|
|
|
/* In case ltmp not initialized, do so now. */ |
|
|
/* In case ltmp not initialized, do so now. */ |
|
|
if (!ltmp) |
|
|
if (!ltmp) |
|
|
ltmp = tal(lr, char); |
|
|
ltmp = notleak(tal(lr, char)); |
|
|
|
|
|
|
|
|
return lr; |
|
|
return lr; |
|
|
} |
|
|
} |
|
@ -195,7 +196,7 @@ static void add_entry(struct log *log, struct log_entry *l) |
|
|
/* Free up temporaries now if any */ |
|
|
/* Free up temporaries now if any */ |
|
|
if (tal_first(ltmp)) { |
|
|
if (tal_first(ltmp)) { |
|
|
tal_free(ltmp); |
|
|
tal_free(ltmp); |
|
|
ltmp = tal(log->lr, char); |
|
|
ltmp = notleak(tal(log->lr, char)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|