I'm pretty sure this is supposed to be realloc(key, (keys + 1) * sizeof(key[0])); instead of realloc(key, keys+1 * sizeof(key[0])); Christian Brauner (1): Fix reallocation calculation src/lxc/lxc_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.5.3