check-source: add check for tal_free(tmpctx).

My older rebased patches use this, and I want to catch it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-05-17 14:38:11 +09:30 committed by Christian Decker
parent cae25ca5db
commit d52564dc05

View File

@ -272,7 +272,10 @@ check-shellcheck:
check-setup_locale: check-setup_locale:
@tools/check-setup_locale.sh @tools/check-setup_locale.sh
check-source: check-makefile check-source-bolt check-whitespace check-markdown check-spelling check-python check-includes check-cppcheck check-shellcheck check-setup_locale check-tmpctx:
@if git grep -n 'tal_free[(]tmpctx)' | grep -Ev '^ccan/|/test/|^common/daemon.c:|^common/utils.c:'; then echo "Don't free tmpctx!">&2; exit 1; fi
check-source: check-makefile check-source-bolt check-whitespace check-markdown check-spelling check-python check-includes check-cppcheck check-shellcheck check-setup_locale check-tmpctx
full-check: check check-source full-check: check check-source