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:
aa6eba4
)
journal: fix memleak, call set_free before return
author
Michal Sekletar
<msekleta@redhat.com>
Fri, 26 Oct 2012 12:11:37 +0000
(14:11 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sun, 28 Oct 2012 00:14:40 +0000
(
02:14
+0200)
src/journal/coredumpctl.c
patch
|
blob
|
history
diff --git
a/src/journal/coredumpctl.c
b/src/journal/coredumpctl.c
index 5b494e340baa3fe9f2d4a0c677e70627bc09d4cb..311c18b6ab8d362e48868796d7ed29ab466ae3ef 100644
(file)
--- a/
src/journal/coredumpctl.c
+++ b/
src/journal/coredumpctl.c
@@
-60,7
+60,7
@@
static Set *new_matches(void) {
tmp = strdup("MESSAGE_ID=fc2e22bc6ee647b6b90729ab34a250b1");
if (!tmp) {
log_oom();
- set_
clear_
free(set);
+ set_free(set);
return NULL;
}
@@
-68,7
+68,7
@@
static Set *new_matches(void) {
if (r < 0) {
log_error("failed to add to set: %s", strerror(-r));
free(tmp);
- set_
clear_
free(set);
+ set_free(set);
return NULL;
}