correct a memory leak
authorMazet Laurent <mazet@softndesign.org>
Thu, 2 Feb 2023 10:44:30 +0000 (11:44 +0100)
committerMazet Laurent <mazet@softndesign.org>
Thu, 2 Feb 2023 10:44:30 +0000 (11:44 +0100)
calc.c

diff --git a/calc.c b/calc.c
index 869372f7c761af4fcca745ae048294f3a1a2fe7a..31ed8fdf226d79d311e609d4eff60c918901b0e8 100644 (file)
--- a/calc.c
+++ b/calc.c
@@ -174,6 +174,7 @@ int main (int argc, char *argv[])
                 free (buffer);
                 continue;
             } else if (strcmp (buffer, ".") == 0) {
+                free (buffer);
                 break;
             }