commit - 6369375bb261d4e55ce449a7d2b3e8ff113da8e71c7bf36f496041ed2324565f
commit + 7857f54b412eee1b52901d868f8567724b661485c2f4212422ddec6af4959f87
blob - fb54f25682de7b205847376b38f4f808cc1a2ca7bf5b93ccdb9d1d6de526da43
blob + b74eea96f4381f314e17af8a488e23503ee2fa8e6e2ce6a075a119d64de79cc9
--- gotsysd/parse.y
+++ gotsysd/parse.y
free($3);
}
| REPOSITORY DIRECTORY STRING {
- if (!got_path_is_absolute($3))
+ if (!got_path_is_absolute($3)) {
yyerror("bad path \"%s\": "
"must be an absolute path", $3);
+ free($3);
+ YYERROR;
+ }
if (realpath($3, gotsysd->repos_path) == NULL) {
yyerror("realpath %s: %s", $3, strerror(errno));