summaryrefslogtreecommitdiff
path: root/src/locale
diff options
context:
space:
mode:
authorVáclav Pavlín <vpavlin@redhat.com>2012-09-21 15:00:43 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-21 16:10:34 +0200
commitf2cc3753ce0e85960f0299855c3b98ba60efa580 (patch)
treee50e12fe8db6cc3dd88b1bf483092d7e7baad50d /src/locale
parentca4f2b6d6dbecce80d28a4b5126f8e83e1d4093b (diff)
locale: make sure that l is freed
Diffstat (limited to 'src/locale')
-rw-r--r--src/locale/localed.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/locale/localed.c b/src/locale/localed.c
index 667c5d1970..a2d381406c 100644
--- 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;
- }
+ } else
+ strv_free(l);
+
} else if (dbus_message_is_method_call(message, "org.freedesktop.locale1", "SetVConsoleKeyboard")) {
const char *keymap, *keymap_toggle;