X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tools%2Fgpg-connect-agent.c;h=6b5f507cae7e1a4ec406d21927aabda6e8f0d75e;hb=88d11242422e9ef0e94e472b61527faeb0a95bde;hp=1cd554f1f741ac00a2da438abfbc02f29b6c1844;hpb=38e6451f41db54227426835fea3069d721d1a0a5;p=platform%2Fupstream%2Fgpg2.git diff --git a/tools/gpg-connect-agent.c b/tools/gpg-connect-agent.c index 1cd554f..6b5f507 100644 --- a/tools/gpg-connect-agent.c +++ b/tools/gpg-connect-agent.c @@ -1879,6 +1879,16 @@ main (int argc, char **argv) if (opt.verbose) log_info ("closing connection to agent\n"); + /* XXX: We would like to release the context here, but libassuan + nicely says good bye to the server, which results in a SIGPIPE if + the server died. Unfortunately, libassuan does not ignore + SIGPIPE when used with UNIX sockets, hence we simply leak the + context here. */ + if (0) + assuan_release (ctx); + else + gpgrt_annotate_leaked_object (ctx); + xfree (line); return 0; }