Commit 4aa052f2 authored by Niels Möller's avatar Niels Möller
Browse files

* src/resource.c (do_remember_resource): If the resource list is

dead, immediately kill any resources added to it.

Rev: src/resource.c:1.13
parent e41f74e3
......@@ -138,7 +138,13 @@ do_remember_resource(struct resource_list *s,
CAST(concrete_resource_list, self, s);
struct resource_node *n;
assert(self->super.super.alive);
if (!self->super.super.alive)
{
werror("do_remember_resource: resource list is already dead.\n");
KILL(resource);
return;
}
NEW_SPACE(n);
n->resource = resource;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment