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:
ca4f2b6
)
locale: make sure that l is freed
author
Václav Pavlín
<vpavlin@redhat.com>
Fri, 21 Sep 2012 13:00:43 +0000
(15:00 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 21 Sep 2012 14:10:34 +0000
(16:10 +0200)
src/locale/localed.c
patch
|
blob
|
history
diff --git
a/src/locale/localed.c
b/src/locale/localed.c
index 667c5d19706de0fd305535538294ab525c8efc02..a2d381406c6da0ac3beb9809e154b4da7e9ae7ca 100644
(file)
--- a/
src/locale/localed.c
+++ b/
src/locale/localed.c
@@
-1123,7
+1123,9
@@
static DBusHandlerResult locale_message_handler(
"Locale\0");
if (!changed)
goto oom;
"Locale\0");
if (!changed)
goto oom;
- }
+ } else
+ strv_free(l);
+
} else if (dbus_message_is_method_call(message, "org.freedesktop.locale1", "SetVConsoleKeyboard")) {
const char *keymap, *keymap_toggle;
} else if (dbus_message_is_method_call(message, "org.freedesktop.locale1", "SetVConsoleKeyboard")) {
const char *keymap, *keymap_toggle;