summaryrefslogtreecommitdiff
path: root/wk5
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-14 04:51:28 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-14 04:51:28 +0000
commit46714e3a9f495cdf3774bfdbbcd516ffb5011ff8 (patch)
tree91d9e8a37a74132d60a82d02de1ff657084fe6ca /wk5
parentb4da42e48b6ef220203fbfa70f4a058e22392464 (diff)
Sat, Apr 13, 2024, 9:51 PM -07:00
Diffstat (limited to 'wk5')
-rw-r--r--wk5/pset/inheritance/inheritance.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/wk5/pset/inheritance/inheritance.c b/wk5/pset/inheritance/inheritance.c
index 87bbd01..6edb985 100644
--- a/wk5/pset/inheritance/inheritance.c
+++ b/wk5/pset/inheritance/inheritance.c
@@ -84,7 +84,6 @@ void free_family(person *p)
{
free(*p);
}
- else
// TODO: Free parents recursively
if (p->parent[0] != NULL)
@@ -92,7 +91,6 @@ void free_family(person *p)
free_family(p->parent[0]);
free_family(p->parent[1]);
}
- else
// TODO: Free child
free(*p);