http://code.msdn.microsoft.com/SPDisposeCheck
To integrate the utility into your dev environment, go to the “Tools” menu and select the “External Tools” menu item in Visual Studio. Select “Add” and configure the tools options as below. The command arg should point to the SPDisposeCheck executable. Pass the project bin directory as an argument, and set the initial directory to your solution directory. Select the “Use Output window” checkbox so that the results from the tool display in the Visual Studio output window.
Image may be NSFW.
Clik here to view.
To use the tool, select a project in your solution, and then select the SPDispose Checker utility from your tools menu. The results from the tool will be displayed in the output window. If you haven't disposed objects, the results in your output window will direct you to where the problems are located in the assembly.