gpg: Fix memory leak due to PKA lookup.
authorWerner Koch <wk@gnupg.org>
Thu, 26 Feb 2015 17:01:13 +0000 (18:01 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 26 Feb 2015 17:01:13 +0000 (18:01 +0100)
* g10/keyserver.c (keyserver_import_pka): Move the xfree.

g10/keyserver.c

index 477ff17..7cac55e 100644 (file)
@@ -1991,8 +1991,8 @@ keyserver_import_pka (ctrl_t ctrl,
          rc = keyserver_import_fprint (ctrl, *fpr, 20, spec);
          free_keyserver_spec (spec);
        }
-      xfree (uri);
     }
+  xfree (uri);
 
   if (rc)
     {