X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fsh%2Fpathphys.c;h=1f73944a398d91e1ae252e69119ad35d719809f9;hb=95732b497d12c98613bb3c5db16b61f377501a59;hp=4d6304ce4d4e7146471a1596fa72c126e42aa6a9;hpb=eb87367179effbe5f430236db8259006d71438b7;p=platform%2Fupstream%2Fbash.git diff --git a/lib/sh/pathphys.c b/lib/sh/pathphys.c index 4d6304c..1f73944 100644 --- a/lib/sh/pathphys.c +++ b/lib/sh/pathphys.c @@ -285,6 +285,7 @@ sh_realpath (pathname, resolved) { strncpy (resolved, wd, PATH_MAX - 1); resolved[PATH_MAX - 1] = '\0'; + free (wd); return resolved; } else