bug#18145: memory leak in pwd

2014-08-01 Thread Bob Proulx
srinivas devaki wrote: i think there is a memory leak in pwd.c I’m extremely sorry if this is wrong. I’m sending the git diff. + free (wd); exit (EXIT_SUCCESS); There is never a need to free memory before exiting from a program. All work being done to free up the memory,

bug#18145: memory leak in pwd

2014-07-29 Thread srinivas devaki
i think there is a memory leak in pwd.c I’m extremely sorry if this is wrong. I’m sending the git diff. [eightnoteight@mr coreutils]$ git diff diff --git a/src/pwd.c b/src/pwd.c index 4993dfb..13d84cd 100644 --- a/src/pwd.c +++ b/src/pwd.c @@ -367,6 +367,7 @@ main (int argc, char **argv)

bug#18145: memory leak in pwd

2014-07-29 Thread Pádraig Brady
tag 18145 notabug close 18145 stop On 07/29/2014 08:02 AM, srinivas devaki wrote: i think there is a memory leak in pwd.c I’m extremely sorry if this is wrong. I’m sending the git diff. [eightnoteight@mr coreutils]$ git diff diff --git a/src/pwd.c b/src/pwd.c index 4993dfb..13d84cd 100644