mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
Missed a bit of:
(scm_getcwd, scm_readlink): Avoid memory leak on errors.
This commit is contained in:
parent
9ff1f64794
commit
b49974ba3d
1 changed files with 0 additions and 1 deletions
|
@ -874,7 +874,6 @@ SCM_DEFINE (scm_getcwd, "getcwd", 0, 0, 0,
|
|||
errno = save_errno;
|
||||
SCM_SYSERROR;
|
||||
}
|
||||
SCM_SYSERROR;
|
||||
result = scm_mem2string (wd, strlen (wd));
|
||||
scm_must_free (wd);
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue