flow: Fix hypothetical memory leak in miniflow_move().
authorBen Pfaff <blp@nicira.com>
Wed, 4 Sep 2013 19:33:06 +0000 (12:33 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 4 Sep 2013 20:09:37 +0000 (13:09 -0700)
commitcd2c51dd9071b2b2a4bae405f576d1ef99667a13
tree9f93f3d965921a192227fd4f3b71e3a6c7b2f5a6
parent3161d84690fe6575210afeb23487a17e8a3a4bbc
flow: Fix hypothetical memory leak in miniflow_move().

Ordinarily a miniflow will use its inline_values if its values can fit, but
there is nothing to prevent a small number of values from being stored
in malloc()'d memory.  If this happened, then miniflow_move() would leak
memory.  This commit fixes the problem.

This is a hypothetical problem.  I haven't seen it in practice.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/flow.c