about summary refs log tree commit diff stats
path: root/src/pgp/gpg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pgp/gpg.c')
-rw-r--r--src/pgp/gpg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pgp/gpg.c b/src/pgp/gpg.c
index f861ae97..ef501844 100644
--- a/src/pgp/gpg.c
+++ b/src/pgp/gpg.c
@@ -159,6 +159,7 @@ p_gpg_on_connect(const char *const barejid)
 {
     char *pgpdir = files_get_data_path(DIR_PGP);
     GString *pubsfile = g_string_new(pgpdir);
+    free(pgpdir);
     gchar *account_dir = str_replace(barejid, "@", "_at_");
     g_string_append(pubsfile, "/");
     g_string_append(pubsfile, account_dir);