X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcgtop%2Fcgtop.c;h=f0ca83fd453dc99a20dca5d495d58509eeb8e966;hb=0d0f0c50d3a1d90f03972a6abb82e6413daaa583;hp=c3824c79798eb941e56c8e5a20a5c9272a2247ec;hpb=e146e4516b9ea9907852e7ad609de39dca9e8769;p=elogind.git diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index c3824c797..f0ca83fd4 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -608,8 +608,7 @@ int main(int argc, char *argv[]) { a = hashmap_new(string_hash_func, string_compare_func); b = hashmap_new(string_hash_func, string_compare_func); if (!a || !b) { - log_error("Out of memory."); - r = -ENOMEM; + r = log_oom(); goto finish; }