mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-01 16:33:02 +01:00
gpgscm: Free file names.
* tests/gpgscm/scheme.c (scheme_load_named_file): Free file name. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
56cebdc30c
commit
6cb2be91a7
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user