Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
778899dd
Commit
778899dd
authored
Sep 27, 2001
by
Niels Möller
Browse files
(dont_free_live_resource): Check that resource is
dead. Don't look at gc_final_p. Rev: src/resource.c:1.22
parent
2471b7a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/resource.c
View file @
778899dd
...
...
@@ -55,23 +55,12 @@ void do_free_resources(struct resource_node **q);
/* Sanity check */
/* NOTE: This happens normally during gc_final. Under all other
* circumstances, it's a serious error. */
/* FIXME: Is this still true? */
void
dont_free_live_resource
(
int
alive
)
{
if
(
alive
)
{
#if 0 && DEBUG_ALLOC
if (gc_final_p)
verbose("dont_free_live_resource: "
"final collection of a live resource!\n");
else
#endif
fatal
(
"dont_free_live_resource: "
"garbage collecting a live resource!
\n
"
);
}
fatal
(
"dont_free_live_resource: "
"garbage collecting a live resource!
\n
"
);
}
/* For resources that are only marked as dead, and taken care of
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment