git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofproto: Fix potential leak during flow mods.
[sliver-openvswitch.git]
/
lib
/
ofp-parse.c
diff --git
a/lib/ofp-parse.c
b/lib/ofp-parse.c
index
d250042
..
c759f03
100644
(file)
--- a/
lib/ofp-parse.c
+++ b/
lib/ofp-parse.c
@@
-1924,7
+1924,7
@@
parse_ofp_flow_mod_file(const char *file_name, uint16_t command,
size_t i;
for (i = 0; i < *n_fms; i++) {
size_t i;
for (i = 0; i < *n_fms; i++) {
- free(
(*fms)[i].ofpacts
);
+ free(
CONST_CAST(struct ofpact *, (*fms)[i].ofpacts)
);
}
free(*fms);
*fms = NULL;
}
free(*fms);
*fms = NULL;