view close.c @ 6:e2b88f50e136

cpuacct: replace strtoll by strtoul and replace sscanf by strsplit + strtoul
author Louis Opter <louis@dotcloud.com>
date Sat, 01 Jan 2011 16:18:17 +0100
parents 6ce4443e7545
children
line wrap: on
line source

#include <stdlib.h>

#include "_lxcstats.h"
#include "lxcstats.h"

int
lxcst_close(lxcst_handle *hdl)
{
    if (hdl) {
        free(hdl->cgroup_dir);
        free(hdl);
    }

    return (0);
}