From a7884a784fe0acb4445c6133dbb2387bcf0c8bf7 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 15 Oct 2022 11:13:46 -0700 Subject: [PATCH] common emit_once: fix unchecked allocation failure --- lib/common/emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/emit.c b/lib/common/emit.c index 97a473d77..94099265f 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -3539,7 +3539,7 @@ int emit_once(char *str) if (strings == 0) strings = dtopen(&stringdict, Dtoset); if (!dtsearch(strings, str)) { - dtinsert(strings, strdup(str)); + dtinsert(strings, gv_strdup(str)); return TRUE; } return FALSE; -- 2.40.0