While it might be possible to identify the memory leaking data structure by analyzing the heap dumps, identifying the memory leaking code which is in a infinite loop is not straightforward.
虽然通过分析堆转储能够标识内存泄漏数据结构,但是标识无限循环中的内存泄漏代码并不简单。
Going a step further, look at the structure of the code inside the while loop.
再进一步,看看while循环内部的结构。
Recall that the format of the /etc/shadow.dynamics file is "username salt password," which the while loop reads each line of the file into the g_user_dynamics data structure.
回想一下 /etc/shadow.dynamics文件的格式为 “usernamesaltpassword”,while 循环将把该文件的所有行读取到 g_user_dynamics数据结构中。
Recall that the format of the /etc/shadow.dynamics file is "username salt password," which the while loop reads each line of the file into the g_user_dynamics data structure.
回想一下 /etc/shadow.dynamics文件的格式为 “usernamesaltpassword”,while 循环将把该文件的所有行读取到 g_user_dynamics数据结构中。
应用推荐