diff options
Diffstat (limited to 'src/commands.c')
| -rw-r--r-- | src/commands.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/commands.c b/src/commands.c index 1396b69..e704d7a 100644 --- a/src/commands.c +++ b/src/commands.c | |||
| @@ -162,6 +162,7 @@ version_cmd = { | |||
| 162 | 162 | ||
| 163 | Command *commands[] = { | 163 | Command *commands[] = { |
| 164 | &commands_cmd, | 164 | &commands_cmd, |
| 165 | &freemem_cmd, | ||
| 165 | &gen_cmd, | 166 | &gen_cmd, |
| 166 | &help_cmd, | 167 | &help_cmd, |
| 167 | &invert_cmd, | 168 | &invert_cmd, |
| @@ -508,8 +509,8 @@ gen_exec(CommandArgs *args) | |||
| 508 | init_symcoord(); | 509 | init_symcoord(); |
| 509 | 510 | ||
| 510 | fprintf(stderr, "Generating pruning tables...\n"); | 511 | fprintf(stderr, "Generating pruning tables...\n"); |
| 511 | for (i = 0; allpd[i] != NULL; i++) | 512 | for (i = 0; all_pd[i] != NULL; i++) |
| 512 | genptable(allpd[i], args->opts->nthreads); | 513 | genptable(all_pd[i], args->opts->nthreads); |
| 513 | 514 | ||
| 514 | fprintf(stderr, "Done!\n"); | 515 | fprintf(stderr, "Done!\n"); |
| 515 | } | 516 | } |
| @@ -547,13 +548,16 @@ commands_exec(CommandArgs *args) | |||
| 547 | static void | 548 | static void |
| 548 | freemem_exec(CommandArgs *args) | 549 | freemem_exec(CommandArgs *args) |
| 549 | { | 550 | { |
| 550 | /* TODO: implement these functions | 551 | int i; |
| 551 | free_allpd(); | 552 | |
| 552 | free_allsd(); | 553 | for (i = 0; all_pd[i] != NULL; i++) |
| 553 | free_invtables(); | 554 | free_pd(all_pd[i]); |
| 554 | free_ttables(); | 555 | |
| 555 | free_mtables(); | 556 | for (i = 0; all_sd[i] != NULL; i++) |
| 556 | */ | 557 | free_sd(all_sd[i]); |
| 558 | |||
| 559 | /* TODO: invtables are also large, but for now they are * | ||
| 560 | * statically allocated. Consider releasing those too. */ | ||
| 557 | } | 561 | } |
| 558 | 562 | ||
| 559 | static void | 563 | static void |
