about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-07-25 01:03:44 +0100
committerJames Booth <boothj5@gmail.com>2016-07-25 01:03:44 +0100
commit33172cb917a6bfa3b2ed3b0a23bd29a126a03c2c (patch)
treea4f6276a67a0a8cee460c9031fd8af3b176914eb
parent1437c360b5da795341d0e0603bd41cdb10196b4c (diff)
downloadprofani-tty-33172cb917a6bfa3b2ed3b0a23bd29a126a03c2c.tar.gz
Free pgpdir
-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);