Fix minor valgrind issues

- Fix valgrind invalid write of 1 byte.
- Fix a few plugin related memory leaks.
This commit is contained in:
Jan Vidar Krey
2011-12-01 13:37:07 +01:00
parent c17b43e77f
commit 9f16298688
4 changed files with 15 additions and 1 deletions

View File

@@ -100,6 +100,8 @@ static struct log_data* parse_config(const char* line, struct plugin_handle* plu
token = cfg_token_get_next(tokens);
}
cfg_tokens_free(tokens);
if (data->logmode == mode_file)
{
if ((data->logmode == mode_file && !data->logfile))