A memory leak auto repair method based on control flow diagram

Gao Qing,Xiong Yingfei,Zhang Lu,Xie Bing,Mei Hong
2015-01-01
Abstract:A memory leak auto repair method based on a control flow diagram is applied to detecting and automatically repairing the memory leak of a computer program, and includes the following steps: a first step: manufacturing the control flow diagram of the computer program; a second step: according to the control flow diagram, detecting and repairing the memory leak; and a third step: using code position information recorded in the control flow diagram, to map a repair code added into the control flow diagram back to an original code of the computer program. Using the method of the present invention, a developer can automatically repair the memory leak of the computer program without worrying about repair errors or introducing new errors.
What problem does this paper attempt to address?