Patent ID: 8479162
Filing Date: 2013-07-02
Classification: G06F

Abstract:
1. A method for locating a memory leak in a program by a computer device, the method comprising the steps of: dynamically analyzing the program by the computer device to determine a memory leak characteristic, wherein dynamically analyzing the program comprising: examining each instruction and filtering out items which do not match the determined memory leak characteristic of the program by the computer device in order to determine a static analysis range containing certain suspicious parts that can cause a memory leak; and statically analyzing the suspicious parts of the determined static analysis range of the program by the computer device to locate the memory leak in the program; pausing the step of statically analyzing if an item that matches the memory leak characteristics is located; reflecting the located memory leak to the source code of the program; repairing the source code of the program to get a repaired program; dynamically analyzing the repaired program; and statically analyzing the repaired program to determine if a memory leak amount of the repaired program is less than a predetermined threshold.