chiark / gitweb /
localectl: fix memleak, use _cleanup_strv_free_
authorMichal Sekletar <msekleta@redhat.com>
Fri, 26 Oct 2012 12:16:18 +0000 (14:16 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 28 Oct 2012 00:14:41 +0000 (02:14 +0200)
commit7ca7021a9e0c443d40d0af5e9a7e1962d8032229
treef0ed6276bc755373ea70660a5d55b349de5dced6
parent2f7a4867babd3fd382e5495f21724358f30fa67d
localectl: fix memleak, use _cleanup_strv_free_

l might contain zero strings, however there is still memory
allocated for NULL terminator, use _cleanup_strv_free_ instead to
prevent tiny leak in such case.
src/locale/localectl.c