diff --git a/src/gmnlm.c b/src/gmnlm.c
index ce5782ba127dff3adcd4da8fee69e74fe34c3a8d..a058caa10e6655aa6f516555717cd2c6df56759c 100644
--- a/src/gmnlm.c
+++ b/src/gmnlm.c
@@ -597,6 +597,7 @@ out:
if (client_cert.key) {
free(client_cert.key);
}
+ free(path_fmt);
free(scheme);
free(host);
return res;