a88e18c024
> fix memory leak when cdpath fails to find a matching path (David Kaspar)
26 lines
525 B
Diff
26 lines
525 B
Diff
From 554366732a43be40ec8e1394c366c9ae48f37b49 Mon Sep 17 00:00:00 2001
|
|
From: christos <christos>
|
|
Date: Fri, 8 Apr 2016 16:10:52 +0000
|
|
Subject: [PATCH] fix memory leak when cdpath fails to find a matching path
|
|
(David Kaspar)
|
|
|
|
---
|
|
sh.dir.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/sh.dir.c b/sh.dir.c
|
|
index 6921a32..e583bdc 100644
|
|
--- a/sh.dir.c
|
|
+++ b/sh.dir.c
|
|
@@ -676,6 +676,7 @@ dfollow(Char *cp, int old)
|
|
cleanup_until(cp);
|
|
return dgoto(cp);
|
|
}
|
|
+ xfree(dp);
|
|
}
|
|
xfree(buf.s);
|
|
}
|
|
--
|
|
2.5.5
|
|
|