projects
/
cascardo
/
ovs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netdev-dpdk: fix mbuf leaks
[cascardo/ovs.git]
/
lib
/
rstp.c
diff --git
a/lib/rstp.c
b/lib/rstp.c
index
a057c60
..
f24ca01
100644
(file)
--- a/
lib/rstp.c
+++ b/
lib/rstp.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 2011-201
4
M3S, Srl - Italy
+ * Copyright (c) 2011-201
5
M3S, Srl - Italy
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-20,6
+20,7
@@
* Authors:
* Martino Fornasa <mf@fornasa.it>
* Daniele Venturino <daniele.venturino@m3s.it>
* Authors:
* Martino Fornasa <mf@fornasa.it>
* Daniele Venturino <daniele.venturino@m3s.it>
+ * Carlo Andreotti <c.andreotti@m3s.it>
*
* References to IEEE 802.1D-2004 standard are enclosed in square brackets.
* E.g. [17.3], [Table 17-1], etc.
*
* References to IEEE 802.1D-2004 standard are enclosed in square brackets.
* E.g. [17.3], [Table 17-1], etc.
@@
-185,6
+186,7
@@
rstp_unref(struct rstp *rstp)
list_remove(&rstp->node);
ovs_mutex_unlock(&rstp_mutex);
list_remove(&rstp->node);
ovs_mutex_unlock(&rstp_mutex);
+ hmap_destroy(&rstp->ports);
free(rstp->name);
free(rstp);
}
free(rstp->name);
free(rstp);
}
@@
-280,6
+282,8
@@
rstp_create(const char *name, rstp_identifier bridge_address,
rstp->aux = aux;
rstp->changes = false;
rstp->begin = true;
rstp->aux = aux;
rstp->changes = false;
rstp->begin = true;
+ rstp->old_root_aux = NULL;
+ rstp->new_root_aux = NULL;
ovs_refcount_init(&rstp->ref_cnt);
ovs_refcount_init(&rstp->ref_cnt);