diff options
Diffstat (limited to 'tests/openpgp-auth.c')
-rw-r--r-- | tests/openpgp-auth.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/openpgp-auth.c b/tests/openpgp-auth.c index d3e521c415..503519aa4f 100644 --- a/tests/openpgp-auth.c +++ b/tests/openpgp-auth.c @@ -87,12 +87,12 @@ doit () if (err != 0) fail ("socketpair %s\n", strerror (errno)); - pub_key_path = alloca (strlen (srcdir) + strlen (pub_key_file) + 2); + pub_key_path = malloc (strlen (srcdir) + strlen (pub_key_file) + 2); strcpy (pub_key_path, srcdir); strcat (pub_key_path, "/"); strcat (pub_key_path, pub_key_file); - priv_key_path = alloca (strlen (srcdir) + strlen (priv_key_file) + 2); + priv_key_path = malloc (strlen (srcdir) + strlen (priv_key_file) + 2); strcpy (priv_key_path, srcdir); strcat (priv_key_path, "/"); strcat (priv_key_path, priv_key_file); @@ -267,6 +267,8 @@ doit () } + free(pub_key_path); + free(priv_key_path); gnutls_global_deinit (); } #else |