diff options
author | Martin Schwenke <martin@meltin.net> | 2017-02-23 11:31:32 +1100 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2017-02-24 07:47:09 +0100 |
commit | 55b75e4ecec17fdb741c12ad5a22846f77f71215 (patch) | |
tree | 8333f278fb8d28fa3089e01b7c31cbd41ef379e9 /ctdb | |
parent | a2daa664ccd284b8894e67ed307a0bd761eb82db (diff) | |
download | samba-55b75e4ecec17fdb741c12ad5a22846f77f71215.tar.gz |
ctdb-logging: CID 1396883 Dereference null return value (NULL_RETURNS)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12592
The fix in 08e03fa7f5fdc7f988fbbb26929e8c5727f36c2e is incomplete.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/common/logging.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/common/logging.c b/ctdb/common/logging.c index c8ccf26b565..8e547c97d9d 100644 --- a/ctdb/common/logging.c +++ b/ctdb/common/logging.c @@ -522,6 +522,7 @@ int logging_init(TALLOC_CTX *mem_ctx, const char *logging, name = strtok(str, ":"); if (name == NULL) { + talloc_free(str); return EINVAL; } option = strtok(NULL, ":"); |