From: John Darrington Date: Sat, 20 Jun 2020 05:17:06 +0000 (+0200) Subject: Fix use after free error in vector command. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6849adbe175e0d548b430ef3d4e94b8ec0f18528;p=pspp Fix use after free error in vector command. Reported by: Andrea Fioraldi. Fixes bug: #58592 --- 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);