[PR #774] [MERGED] fix xorm NewSession uncorrected usages #15566

Closed
opened 2025-11-02 11:49:34 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/774
Author: @lunny
Created: 1/27/2017
Status: Merged
Merged: 1/27/2017
Merged by: @lunny

Base: masterHead: lunny/fix_xorm_session


📝 Commits (1)

  • f70c32e fix xorm NewSession uncorrected usages

📊 Changes

6 files changed (+23 additions, -33 deletions)

View changed files

📝 models/access_test.go (+4 -12)
📝 models/org.go (+6 -4)
📝 models/org_team.go (+1 -1)
📝 models/pull_test.go (+1 -3)
📝 models/repo.go (+11 -12)
📝 models/star.go (+0 -1)

📄 Description

If x.NewSession() be called, sess.Close() must be called after that.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/774 **Author:** [@lunny](https://github.com/lunny) **Created:** 1/27/2017 **Status:** ✅ Merged **Merged:** 1/27/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/fix_xorm_session` --- ### 📝 Commits (1) - [`f70c32e`](https://github.com/go-gitea/gitea/commit/f70c32ee7d3673aac6dcda2cd279c26d93bef8f2) fix xorm NewSession uncorrected usages ### 📊 Changes **6 files changed** (+23 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `models/access_test.go` (+4 -12) 📝 `models/org.go` (+6 -4) 📝 `models/org_team.go` (+1 -1) 📝 `models/pull_test.go` (+1 -3) 📝 `models/repo.go` (+11 -12) 📝 `models/star.go` (+0 -1) </details> ### 📄 Description If `x.NewSession()` be called, `sess.Close()` must be called after that. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:49:34 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15566