]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
net: Fix a memleak in "net cache list"
authorVolker Lendecke <vl@samba.org>
Wed, 10 Jun 2026 07:36:22 +0000 (09:36 +0200)
committerMartin Schwenke <martins@samba.org>
Thu, 11 Jun 2026 12:16:31 +0000 (12:16 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
source3/utils/net_cache.c

index a5a67ea4ced7dbbc141117e41a97c37124343396..c4d2590a7b8e010b3ff70d502ca65015637427e7 100644 (file)
@@ -110,6 +110,7 @@ static void print_cache_entry(const char* keystr, DATA_BLOB value,
        d_printf(_("Key: %s\t Timeout: %s\t Value: %s  %s\n"), keystr,
                 timeout_str, datastr, timeout > now_t ? "": _("(expired)"));
 
+       TALLOC_FREE(datastr_free);
        SAFE_FREE(alloc_str);
 }