diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2011-05-03 22:32:42 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-05-04 11:07:13 +0200 |
commit | f1fae4dd067e4fd0862e4cebbabd752445afaea1 (patch) | |
tree | 9aa0122898f851df71f3320acd9a709f13ca3874 /src | |
parent | d6b5195be2676d33226efe53dad62723c3fb0655 (diff) |
logging: several memory allocation belong to tall_log_ctx context
Several talloc_zero in logging use NULL context, use tall_log_ctx
instead.
Diffstat (limited to 'src')
-rw-r--r-- | src/logging.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logging.c b/src/logging.c index 7b1ab138..7fabfcbf 100644 --- a/src/logging.c +++ b/src/logging.c @@ -448,7 +448,7 @@ const char *log_vty_command_string(const struct log_info *info) size += strlen(loglevel_strs[i].str) + 1; rem = size; - str = talloc_zero_size(NULL, size); + str = talloc_zero_size(tall_log_ctx, size); if (!str) return NULL; @@ -519,7 +519,7 @@ const char *log_vty_command_description(const struct log_info *info) size += strlen("Global setting for all subsystems") + 1; rem = size; - str = talloc_zero_size(NULL, size); + str = talloc_zero_size(tall_log_ctx, size); if (!str) return NULL; |