Make sure the fragment remover sets the nsurl to NULL on failure.

svn path=/trunk/netsurf/; revision=12956
This commit is contained in:
Michael Drake 2011-10-05 12:15:27 +00:00
parent 921e9959e6
commit 7d0b91caa7

View File

@ -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;
}