[ovs-dev] memory leaks in meters code?

Ben Pfaff blp at nicira.com
Fri Jun 28 22:08:21 UTC 2013


I think that there are some memory leaks in the new meters code.  I
don't, for example, see any "free" in ofproto_destroy() to match up
with this xzalloc() in ofproto_create():

    ofproto->meters = xzalloc((ofproto->meter_features.max_meters + 1)
                              * sizeof(struct meter *));

Are you willing to take a look?

Thanks,

Ben.



More information about the dev mailing list