free memory on error condition

This commit is contained in:
Vincent Sanders 2013-05-04 08:45:04 +01:00
parent 5c57a30047
commit 560faaa7be

View File

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