From f2cc3753ce0e85960f0299855c3b98ba60efa580 Mon Sep 17 00:00:00 2001 From: Václav Pavlín Date: Fri, 21 Sep 2012 15:00:43 +0200 Subject: locale: make sure that l is freed --- src/locale/localed.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-54-g00ecf