s3-utils: fix crash in net cache get
[mat/samba.git] / source3 / utils / net_cache.c
index 88aff4e16ec73b0d9d641efb73304c4ac9b30d68..afcb7a1874f2ca76ee5d82a71e8b09796f143c60 100644 (file)
@@ -244,7 +244,7 @@ static int net_cache_get(struct net_context *c, int argc, const char **argv)
 
        if (gencache_get_data_blob(keystr, &value, &timeout, NULL)) {
                print_cache_entry(keystr, value, timeout, NULL);
-               SAFE_FREE(value.data);
+               data_blob_free(&value);
                return 0;
        }