From 00cf235a7a8c028834203eede30f3fa0ed63ab80 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 16 Dec 2019 17:41:16 +0100 Subject: [PATCH] checkpatch: catch "gs_free GError *" declations (cherry picked from commit ec0adbfaf0175fc7f54b3f4a6035240a837651e6) (cherry picked from commit 2fa4827eb97dd59998a429fef0c2d6180951f74c) --- contrib/scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl index b34878e670..d789a62ff1 100755 --- a/contrib/scripts/checkpatch.pl +++ b/contrib/scripts/checkpatch.pl @@ -194,6 +194,7 @@ complain ("Don't add Emacs editor formatting hints to source files") if $line_no complain ("XXX marker are reserved for development while work-in-progress. Use TODO or FIXME comment instead?") if $line =~ /\bXXX\b/; complain ("This gtk-doc annotation looks wrong") if $line =~ /\*.*\( *(transfer-(none|container|full)|allow none) *\) *(:|\()/; complain ("Prefer nm_assert() or g_return*() to g_assert*()") if $line =~ /g_assert/ and not $filename =~ /\/tests\//; +complain ("Use gs_free_error with GError variables") if $line =~ /\bgs_free\b +GError *\*/; new_hunk if $_ eq ''; my ($this_indent) = /^(\s*)/;