summaryrefslogtreecommitdiff
path: root/src/UriNormalize.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhsoting.net>2015-10-07 16:32:38 +0200
committerJörg Frings-Fürst <debian@jff-webhsoting.net>2015-10-07 16:32:38 +0200
commit6739f7a7e0858ecfcf83d9cb456f6edbb2fe4095 (patch)
tree71640ef65220bea8485726e701acda2fd2c74ed3 /src/UriNormalize.c
parent0d83e41f90a523f69d8701fc218ce4c133eb53c6 (diff)
parentd4ba486cc6aacbbed2be1e71ea77410052a22ac1 (diff)
Merge tag 'upstream/0.8.3'
Upstream version 0.8.3
Diffstat (limited to 'src/UriNormalize.c')
-rw-r--r--src/UriNormalize.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/UriNormalize.c b/src/UriNormalize.c
index dbbc23e..49db9ff 100644
--- a/src/UriNormalize.c
+++ b/src/UriNormalize.c
@@ -424,9 +424,11 @@ static URI_INLINE UriBool URI_FUNC(MakeOwner)(URI_TYPE(Uri) * uri,
if ((*doneMask & URI_NORMALIZE_PATH) == 0) {
while (walker != NULL) {
if (!URI_FUNC(MakeRangeOwner)(doneMask, 0, &(walker->text))) {
- /* Kill path to one before walker */
+ /* Free allocations done so far and kill path */
+
+ /* Kill path to one before walker (if any) */
URI_TYPE(PathSegment) * ranger = uri->pathHead;
- while (ranger->next != walker) {
+ while (ranger != walker) {
URI_TYPE(PathSegment) * const next = ranger->next;
if ((ranger->text.first != NULL)
&& (ranger->text.afterLast != NULL)