mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 15:49:25 +00:00
tree-wide: initialize all auto-cleanup variables
Closes: #3101. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
5c338ef44e
commit
6453ba565e
@ -1260,7 +1260,7 @@ static int mkdir_eexist_on_last(const char *dir, mode_t mode)
|
|||||||
|
|
||||||
orig_len = strlen(dir);
|
orig_len = strlen(dir);
|
||||||
do {
|
do {
|
||||||
__do_free char *makeme;
|
__do_free char *makeme = NULL;
|
||||||
int ret;
|
int ret;
|
||||||
size_t cur_len;
|
size_t cur_len;
|
||||||
|
|
||||||
|
@ -909,9 +909,9 @@ static int set_config_net_ipv6_gateway(const char *key, const char *value,
|
|||||||
static int set_config_net_veth_ipv6_route(const char *key, const char *value,
|
static int set_config_net_veth_ipv6_route(const char *key, const char *value,
|
||||||
struct lxc_conf *lxc_conf, void *data)
|
struct lxc_conf *lxc_conf, void *data)
|
||||||
{
|
{
|
||||||
__do_free char *valdup;
|
__do_free char *valdup = NULL;
|
||||||
__do_free struct lxc_inet6dev *inet6dev;
|
__do_free struct lxc_inet6dev *inet6dev = NULL;
|
||||||
__do_free struct lxc_list *list;
|
__do_free struct lxc_list *list = NULL;
|
||||||
int ret;
|
int ret;
|
||||||
char *netmask, *slash;
|
char *netmask, *slash;
|
||||||
struct lxc_netdev *netdev = data;
|
struct lxc_netdev *netdev = data;
|
||||||
|
Loading…
Reference in New Issue
Block a user