From 5725ecad67e36f328c3c1fcf48bc82095e7cdd40 Mon Sep 17 00:00:00 2001 From: vvn <12132640+pyway@users.noreply.github.com> Date: Thu, 13 Jun 2019 14:51:28 +0800 Subject: [PATCH] Update path.c --- src/cli/path.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli/path.c b/src/cli/path.c index cbba0a7c..6ad34a90 100644 --- a/src/cli/path.c +++ b/src/cli/path.c @@ -299,6 +299,8 @@ void pathNormalize(Path* path) path->capacity = result->capacity; path->chars = result->chars; path->length = result->length; + + free(result); } char* pathToString(Path* path)