projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c25ce3
)
src/data/format.c (fmt_affix_free): Fix memory leak
author
John Darrington
<john@darrington.wattle.id.au>
Sat, 1 May 2021 11:55:35 +0000
(13:55 +0200)
committer
John Darrington
<john@darrington.wattle.id.au>
Sat, 1 May 2021 11:55:35 +0000
(13:55 +0200)
src/data/format.c
patch
|
blob
|
history
diff --git
a/src/data/format.c
b/src/data/format.c
index 74ee0e2e2ab3379222868ddce40aa1bf4fc795d6..d22398601bfa8b6e062cf72b8750accb17948b81 100644
(file)
--- a/
src/data/format.c
+++ b/
src/data/format.c
@@
-1156,7
+1156,7
@@
fmt_affix_clone (const struct fmt_affix *old)
static void
fmt_affix_free (struct fmt_affix *affix)
{
- if (affix->s
[0]
)
+ if (affix->s)
free (affix->s);
}