ofproto-dpif-sflow: Fix memory leak.
authorBen Pfaff <blp@nicira.com>
Tue, 20 Aug 2013 18:27:32 +0000 (11:27 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 20 Aug 2013 18:27:32 +0000 (11:27 -0700)
commit0891637f67671c0654b9ff6b4c25a654375d24e2
treeb6f6132c4bfe9b27bfa04c0de84cf9b754eca244
parent56450a416cbf8f770d7511b18624e0d057e2b449
ofproto-dpif-sflow: Fix memory leak.

dpif_sflow_set_options() uses xcalloc() to allocate space for the SFLAgent
structure, but nothing ever freed it.  This fixes the problem.

Found by valgrind.

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