locale: make sure that l is freed

This commit is contained in:
Václav Pavlín
2012-09-21 16:10:34 +02:00
committed by Lennart Poettering
parent ca4f2b6d6d
commit f2cc3753ce
+3 -1
View File
@@ -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;