diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/nsurl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/nsurl.c b/utils/nsurl.c index c29340006..46a172156 100644 --- a/utils/nsurl.c +++ b/utils/nsurl.c @@ -1698,6 +1698,7 @@ nserror nsurl_defragment(const nsurl *url, nsurl **no_frag) if (nsurl_get(url, NSURL_COMPLETE, &((*no_frag)->string), &((*no_frag)->length)) != NSERROR_OK) { free(*no_frag); + *no_frag = NULL; return NSERROR_NOMEM; } |