mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-14 02:52:52 +03:00
Make sure the fragment remover sets the nsurl to NULL on failure.
svn path=/trunk/netsurf/; revision=12956
This commit is contained in:
parent
921e9959e6
commit
7d0b91caa7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user