From 6849adbe175e0d548b430ef3d4e94b8ec0f18528 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 20 Jun 2020 07:17:06 +0200 Subject: [PATCH] Fix use after free error in vector command. Reported by: Andrea Fioraldi. Fixes bug: #58592 --- src/language/dictionary/vector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/language/dictionary/vector.c b/src/language/dictionary/vector.c index 6560288c47..28e97b15d8 100644 --- a/src/language/dictionary/vector.c +++ b/src/language/dictionary/vector.c @@ -167,8 +167,8 @@ cmd_vector (struct lexer *lexer, struct dataset *ds) } if (dict_lookup_var (dict, name)) { - free (name); msg (SE, _("%s is an existing variable name."), name); + free (name); goto fail; } free (name); -- 2.30.2