git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b5e6a4
)
ofproto-dpif: Fix another memory leak in type_run().
author
Ben Pfaff
<blp@nicira.com>
Tue, 18 Dec 2012 21:18:26 +0000
(13:18 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 18 Dec 2012 23:52:22 +0000
(15:52 -0800)
'devname' needs to be destroyed whether it's the datapath device or not.
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c
patch
|
blob
|
history
diff --git
a/ofproto/ofproto-dpif.c
b/ofproto/ofproto-dpif.c
index
b78d6cf
..
6ce9a07
100644
(file)
--- a/
ofproto/ofproto-dpif.c
+++ b/
ofproto/ofproto-dpif.c
@@
-836,7
+836,7
@@
type_run(const char *type)
/* Don't report on the datapath's device. */
if (!strcmp(devname, dpif_base_name(backer->dpif))) {
-
continue
;
+
goto next
;
}
ofproto = lookup_ofproto_dpif_by_port_name(devname);
@@
-857,6
+857,7
@@
type_run(const char *type)
}
dpif_port_destroy(&port);
+ next:
free(devname);
}