From: Peter Krempa Date: Tue, 7 Oct 2025 16:24:19 +0000 (+0200) Subject: syntax-check: Prohibit the non-clearing 'g_new' X-Git-Tag: v11.9.0-rc1~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0756fefdc5b323eee8f2ac5cb6387aaec3d09396;p=thirdparty%2Flibvirt.git syntax-check: Prohibit the non-clearing 'g_new' Signed-off-by: Peter Krempa Reviewed-by: Pavel Hrdina --- diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index 4ba059b56b..4deaa70368 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -92,7 +92,7 @@ sc_prohibit_raw_virclassnew: # Avoid raw malloc and free, except in documentation comments. sc_prohibit_raw_allocation: - @prohibit='^.[^*].*\<((m|c|re)alloc|free|g_malloc) *\([^)]' \ + @prohibit='^.[^*].*\<((m|c|re)alloc|free|g_malloc|g_new) *\([^)]' \ halt='use g_new0/g_malloc0/g_free instead of malloc/free/g_malloc' \ $(_sc_search_regexp)