From 367445b6c13814865f7ba8fb086c06812cf38ef4 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 15 Oct 2022 10:59:52 -0700 Subject: [PATCH] smyrna get_data_dir: fix unchecked allocation failure --- cmd/smyrna/viewport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index 5b8d5e2c5..6bd078e02 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -246,7 +246,7 @@ static gboolean gl_main_expose(gpointer data) static void get_data_dir(void) { free(view->template_file); - view->template_file = strdup(smyrnaPath("template.dot")); + view->template_file = gv_strdup(smyrnaPath("template.dot")); } void init_viewport(ViewInfo * view) -- 2.40.0