Changed paths:
M src/lxc/lxccontainer.c
M src/lxc/storage/storage.c
M src/lxc/storage/storage.h
Log Message:
-----------
Fix return from fn stack
storage_copy builds a struct lxc_storage on the stack, and
returns a pointer to that on success to its caller. That's
could be a huge issue, except that its only caller quickly
makes a copy of the -> src and then releases it.
Still, to avoid a future user actually overwriting the struct
and then continuing to use it, let's fix this now. There's
no point returning the whole lxc_storage struct anyway. Just
return a copy of the bdev->src.