summaryrefslogtreecommitdiff
path: root/lib/nx-match.c
diff options
context:
space:
mode:
authoryinpeijun <yinpeijun@huawei.com>2014-08-27 09:52:54 +0800
committerBen Pfaff <blp@nicira.com>2014-08-27 07:37:40 -0700
commitea30de0ebdaa886ee5dd0aab117b7422172e3aef (patch)
treec2fc8e7b392b85e0e714eef7349a6a7d68014b83 /lib/nx-match.c
parentf7a22c7e6a598e25aed6b2cd6dce4a1ee2c41bc9 (diff)
downloadopenvswitch-ea30de0ebdaa886ee5dd0aab117b7422172e3aef.tar.gz
Fix memory leaks in error paths.
Found by Fortify. Signed-off-by: yinpeijun <yinpeijun@huawei.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/nx-match.c')
-rw-r--r--lib/nx-match.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/nx-match.c b/lib/nx-match.c
index 1d3205f6f..54712ccce 100644
--- a/lib/nx-match.c
+++ b/lib/nx-match.c
@@ -109,6 +109,7 @@ check_mask_consistency(const uint8_t *p, const struct mf_field *mf)
"bits wildcarded by the mask. (Future versions "
"of OVS may report this as an OpenFlow error.)",
s);
+ free(s);
break;
}
}