projects
/
platform
/
upstream
/
bash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported from ../bash-3.1.tar.gz.
[platform/upstream/bash.git]
/
lib
/
sh
/
pathphys.c
diff --git
a/lib/sh/pathphys.c
b/lib/sh/pathphys.c
index
4d6304c
..
1f73944
100644
(file)
--- 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