Revert "s3: vfs: add user_vfs_evg to connection_struct"
[kai/samba-autobuild/.git] / source3 / modules / vfs_readonly.c
index 570eb7c4d15a24b42f9cffe33a61025819f885fb..e7e12747a2225dab74794a67583d6039c4607b9a 100644 (file)
@@ -84,7 +84,7 @@ static int readonly_connect(vfs_handle_struct *handle,
       for (i=0; i< VUID_CACHE_SIZE; i++) {
         struct vuid_cache_entry *ent = &conn->vuid_cache->array[i];
         ent->vuid = UID_FIELD_INVALID;
-        ent->user_ev_ctx = NULL;
+        TALLOC_FREE(ent->user_ev_ctx);
         TALLOC_FREE(ent->session_info);
         ent->read_only = false;
         ent->share_access = 0;