ovs-benchmark: Fix memory leak.
authorBen Pfaff <blp@ovn.org>
Wed, 23 Dec 2015 07:27:45 +0000 (23:27 -0800)
committerBen Pfaff <blp@ovn.org>
Wed, 23 Dec 2015 07:28:09 +0000 (23:28 -0800)
This leak is not a real problem.

Reported-by: xushengping
Reported-at: https://github.com/openvswitch/ovs/pull/100
Signed-off-by: Ben Pfaff <blp@ovn.org>
utilities/ovs-benchmark.c

index 228af6e..cfff413 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010, 2011, 2012, 2013 Nicira, Inc.
+ * Copyright (c) 2010, 2011, 2012, 2013, 2015 Nicira, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -491,6 +491,7 @@ cmd_rate(struct ovs_cmdl_context *ctx OVS_UNUSED)
             }
         }
     }
+    free(fds);
 }
 
 static void