]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
xgettext: Fix bug with syntax-checks on messages from Perl source code.
authorBruno Haible <bruno@clisp.org>
Thu, 3 Jul 2025 10:50:15 +0000 (12:50 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 3 Jul 2025 13:48:48 +0000 (15:48 +0200)
* gettext-tools/src/x-perl.c (extract_perl): Don't free logical_file_name,
because it is referenced by the 'pos' field of the returned messages, and
xg-check.c accesses and prints it.

gettext-tools/src/x-perl.c

index fb254d9f8e2f1ebcb9375028cd9a2b9d256beece..d3aa5047660c36d37633afc68950e319c3891fe7 100644 (file)
@@ -3885,6 +3885,5 @@ extract_perl (FILE *f, const char *real_filename, const char *logical_filename,
   token_stack_free (&xp->token_stack);
   free (xp);
   real_file_name = NULL;
-  free (logical_file_name);
   logical_file_name = NULL;
 }