aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/deco.c1
-rw-r--r--src/opendeco.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/deco.c b/src/deco.c
index 5d03e75..9719f06 100644
--- a/src/deco.c
+++ b/src/deco.c
@@ -290,6 +290,7 @@ void init_decostate(decostate_t *ds, const unsigned char gflo, const unsigned ch
ds->gflo = gflo;
ds->gfhi = gfhi;
ds->firststop = -1;
+ ds->max_depth = 0;
ds->ceil_multiple = ceil_multiple;
}
diff --git a/src/opendeco.c b/src/opendeco.c
index 26eea7e..9329383 100644
--- a/src/opendeco.c
+++ b/src/opendeco.c
@@ -230,5 +230,6 @@ int main(int argc, char *argv[])
wprintf(L"\nNDL: %i TTS: %i TTS @+5: %i\n", (int) floor(di.ndl), (int) ceil(di.tts), (int) ceil(di_plus5.tts));
print_planfoot(&ds);
+ free(deco_gasses);
return 0;
}