Tag: c34186ed008229e7f7e3f1de8e6acf6374995358

net/ipv4: Eliminate kstrdup memory leak

Author: Julia Lawall <julia@diku.dk> The string clone is only used as a temporary copy of the argument val within the while loop, and so it should be freed before leaving the function. The call to strsep, however, modifies clone, so a pointer to the front of the string is kept in saved_clone, to make it …

Continue reading