Soft'N'Design Software
/
projects
/
calc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6c89afb
)
correct a memory leak
author
Mazet Laurent
<mazet@softndesign.org>
Thu, 2 Feb 2023 10:44:30 +0000
(11:44 +0100)
committer
Mazet Laurent
<mazet@softndesign.org>
Thu, 2 Feb 2023 10:44:30 +0000
(11:44 +0100)
calc.c
patch
|
blob
|
blame
|
history
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;
}