From 096b2846e3bf24e7a356b4375e40c492323b6305 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ito Date: Wed, 20 Nov 2024 19:39:00 +0900 Subject: [PATCH] * math_scanner.c (get_symbol): fix potential double free. --- src/math/math_scanner.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/math/math_scanner.c b/src/math/math_scanner.c index f3d9def53..f966ad4f7 100644 --- a/src/math/math_scanner.c +++ b/src/math/math_scanner.c @@ -383,7 +383,6 @@ get_symbol(const char *str, const char ** rstr) g_free(buf); tok = create_token(str, type); if (tok == NULL) { - g_free(buf); return NULL; } } else {