Implementa comando sistema para configurações.
[cascardo/declara.git] / lib / declaracao.c
index 9d36937..e4afe91 100644 (file)
@@ -20,6 +20,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include "list.h"
+#include "sistema.h"
 #include "rendimento.h"
 #include "isento.h"
 #include "pagamento.h"
@@ -90,5 +91,6 @@ void declaracao_free(struct declaracao *dec)
        list_free(dec->pagamentos, pagamento_free);
        list_free(dec->bens, bem_free);
        pmhash_del(dec->totais);
+       sistema_free(dec);
        free(dec);
 }