TP_13 exo1: Fix a memleak on the prompt error handling case
[TD_C.git] / TP_13 / exo1 / src / main.c
index ef4d5455c32177aba07a6eff8f7af458d9931fd1..a68e73cb2cbf5a1b87031357c576e11eb9521993 100644 (file)
@@ -17,7 +17,7 @@ int main() {
     do {
         display_choice_menu();
         errno = prompt_value("Choix?", &choice);
-        handle_prompt_error(errno);
+        handle_prompt_error(errno, tab);
         if (1 > choice || 8 < choice) {
             printf("\nFaire un choix compris entre 1 et 8\n");
             continue;