Beispiel #1
0
void                    free_shell(s_shell              *shell)
{
    history_save(shell->queue_history);

    free_history_queue(shell->queue_history);
    free_variables(shell->vars);
    free_functions(shell->func);
    free_variables(shell->alias);

    mstream_close();
    mmalloc_free();

    free(shell);
}
void game_done(void)
{
#ifdef CLEANUP_CODE
    /* Diese Routine enfernt allen allokierten Speicher wieder. Das ist nur
     * zum Debugging interessant, wenn man Leak Detection hat, und nach
     * nicht freigegebenem Speicher sucht, der nicht bis zum Ende benötigt
     * wird (temporäre Hilsstrukturen) */

    free_game();

    creport_cleanup();
#ifdef REPORT_FORMAT_NR
    report_cleanup();
#endif
    calendar_cleanup();
#endif
    free_functions();
    curses_done();
    kernel_done();
}
void translation_done(void)
{
    free_functions();
    free(buffer.begin);
}