chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2b999b
)
conf-parser: make use of free_and_replace() at one more place
author
Lennart Poettering
<lennart@poettering.net>
Tue, 22 May 2018 11:12:48 +0000
(13:12 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000
(16:47 +0200)
src/shared/conf-parser.h
patch
|
blob
|
history
diff --git
a/src/shared/conf-parser.h
b/src/shared/conf-parser.h
index f0bc36054c8a6e2ca7edbc56b2e877d25048eb36..e8c1a90519f203954a45e4e433c9dcfc351bfe46 100644
(file)
--- a/
src/shared/conf-parser.h
+++ b/
src/shared/conf-parser.h
@@
-242,9
+242,6
@@
typedef enum Disabled {
*(xs + i) = invalid; \
} \
\
- free(*enums); \
- *enums = xs; \
- xs = NULL; \
- \
+ free_and_replace(*enums, xs); \
return 0; \
}