Merge pull request #2680 from manishtomar/mani-fix-mem-leak
fix memory leak introduced in PR #2648master
						commit
						3354cf98e3
					
				|  | @ -706,7 +706,7 @@ func (app *App) dispatcher(dispatch dispatchFunc) http.Handler { | ||||||
| 			} | 			} | ||||||
| 
 | 
 | ||||||
| 			// assign and decorate the authorized repository with an event bridge.
 | 			// assign and decorate the authorized repository with an event bridge.
 | ||||||
| 			context.Repository, context.App.repoRemover = notifications.Listen( | 			context.Repository, context.RepositoryRemover = notifications.Listen( | ||||||
| 				repository, | 				repository, | ||||||
| 				context.App.repoRemover, | 				context.App.repoRemover, | ||||||
| 				app.eventBridge(context, r)) | 				app.eventBridge(context, r)) | ||||||
|  |  | ||||||
|  | @ -25,6 +25,9 @@ type Context struct { | ||||||
| 	// should be scoped to a single repository. This field may be nil.
 | 	// should be scoped to a single repository. This field may be nil.
 | ||||||
| 	Repository distribution.Repository | 	Repository distribution.Repository | ||||||
| 
 | 
 | ||||||
|  | 	// RepositoryRemover provides method to delete a repository
 | ||||||
|  | 	RepositoryRemover distribution.RepositoryRemover | ||||||
|  | 
 | ||||||
| 	// Errors is a collection of errors encountered during the request to be
 | 	// Errors is a collection of errors encountered during the request to be
 | ||||||
| 	// returned to the client API. If errors are added to the collection, the
 | 	// returned to the client API. If errors are added to the collection, the
 | ||||||
| 	// handler *must not* start the response via http.ResponseWriter.
 | 	// handler *must not* start the response via http.ResponseWriter.
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue