1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

Release session_env.

This commit is contained in:
Werner Koch 2009-07-07 10:29:52 +00:00
parent f6f5430e50
commit e1f6e32da0

View File

@ -2081,11 +2081,6 @@ start_agent (void)
assuan_context_t ctx;
session_env_t session_env;
session_env = session_env_new ();
if (!session_env)
log_fatal ("error allocating session environment block: %s\n",
strerror (errno));
infostr = getenv ("GPG_AGENT_INFO");
if (!infostr || !*infostr)
{
@ -2174,8 +2169,14 @@ start_agent (void)
exit (1);
}
session_env = session_env_new ();
if (!session_env)
log_fatal ("error allocating session environment block: %s\n",
strerror (errno));
rc = send_pinentry_environment (ctx, GPG_ERR_SOURCE_DEFAULT,
NULL, NULL, session_env);
session_env_release (session_env);
if (rc)
{
log_error (_("error sending standard options: %s\n"), gpg_strerror (rc));