Imported Upstream version 2.6.1
[debian/amanda] / common-src / local-security.c
index 29a946df5ae0d233619d397c0a0bbf6c03350d9c..7e2d1d81845c9fe4bef1a2c8b23729f296c18f93 100644 (file)
@@ -178,6 +178,7 @@ local_connect(
 
 error:
     (*fn)(arg, &rh->sech, S_ERROR);
+    amfree(rh->hostname);
 }
 
 /*
@@ -188,7 +189,7 @@ static int
 runlocal(
     struct tcp_conn *  rc,
     const char *       amandad_path,
-    const char *       client_username)
+    const char *       client_username G_GNUC_UNUSED)
 {
     int rpipe[2], wpipe[2];
     char *xamandad_path = (char *)amandad_path;