summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--16.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/16.c b/16.c
index 79b15de..a36810c 100644
--- a/16.c
+++ b/16.c
@@ -248,6 +248,7 @@ main(int argc, char ** argv)
break;
default:
+ regfree(&valvein);
return -1;
}
}
@@ -294,6 +295,7 @@ main(int argc, char ** argv)
for (v = valves; v < valves + nvalves; ++v)
valve_dtor(v);
free(valves);
+ regfree(&valvein);
return -1;
}
@@ -354,6 +356,7 @@ main(int argc, char ** argv)
for (v = valves; v < valves + nvalves; ++v)
valve_dtor(v);
free(valves);
+ regfree(&valvein);
return 0;
}