mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
free memory on error condition
This commit is contained in:
parent
5c57a30047
commit
560faaa7be
@ -1338,6 +1338,7 @@ nserror content__clone(const struct content *c, struct content *nc)
|
||||
|
||||
error = llcache_handle_clone(c->llcache, &(nc->llcache));
|
||||
if (error != NSERROR_OK) {
|
||||
free(user_sentinel);
|
||||
return error;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user