s4-client: Don't leak memory.
authorAndreas Schneider <asn@samba.org>
Wed, 20 Feb 2013 08:48:59 +0000 (09:48 +0100)
committerAlexander Bokovoy <ab@samba.org>
Fri, 22 Feb 2013 15:36:14 +0000 (16:36 +0100)
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source4/client/client.c

index 5e8f5ca8aebf3edddfb1e63376fd6613a4540733..43b0903cdc625820721ac7054f6c2aa68e65672b 100644 (file)
@@ -1085,6 +1085,8 @@ static int cmd_altname(struct smbclient_context *ctx, const char **args)
        }
        d_printf("%s\n", altname);
 
+       SAFE_FREE(altname);
+
        return 0;
 }