summaryrefslogtreecommitdiff
path: root/wk5/pset/inheritance/inheritance.c
diff options
context:
space:
mode:
Diffstat (limited to 'wk5/pset/inheritance/inheritance.c')
-rw-r--r--wk5/pset/inheritance/inheritance.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wk5/pset/inheritance/inheritance.c b/wk5/pset/inheritance/inheritance.c
index 172af27..912a461 100644
--- a/wk5/pset/inheritance/inheritance.c
+++ b/wk5/pset/inheritance/inheritance.c
@@ -80,6 +80,7 @@ person *create_family(int generations)
void free_family(person *p)
{
// TODO: Handle base case
+ free(p)
// TODO: Free parents recursively