[Pkg-gnupg-commit] [gnupg2] 67/160: gpgscm: Free file names.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Fri Jul 15 09:36:37 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch upstream
in repository gnupg2.
commit 6cb2be91a7cc8a9b8ec42f3956adbb19347318e3
Author: Justus Winter <justus at g10code.com>
Date: Tue Jun 28 18:10:01 2016 +0200
gpgscm: Free file names.
* tests/gpgscm/scheme.c (scheme_load_named_file): Free file name.
Signed-off-by: Justus Winter <justus at g10code.com>
---
tests/gpgscm/scheme.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c
index aabf400..4c28230 100644
--- a/tests/gpgscm/scheme.c
+++ b/tests/gpgscm/scheme.c
@@ -4938,6 +4938,11 @@ void scheme_load_named_file(scheme *sc, FILE *fin, const char *filename) {
if(sc->retcode==0) {
sc->retcode=sc->nesting!=0;
}
+
+#if SHOW_ERROR_LINE
+ sc->free(sc->load_stack[0].rep.stdio.filename);
+ sc->load_stack[0].rep.stdio.filename = NULL;
+#endif
}
void scheme_load_string(scheme *sc, const char *cmd) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list