-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes memory leak in traffic_class_test and improves traffic class deletion behavior. #199
Conversation
Current coverage is 62.83% (diff: 100%)@@ master #199 diff @@
==========================================
Files 46 46
Lines 2129 2139 +10
Methods 278 278
Messages 0 0
Branches 0 0
==========================================
+ Hits 1334 1344 +10
Misses 795 795
Partials 0 0
|
@changlan This should fix the issue you opened. |
TrafficClass *c = CT("leaf", {LEAF}); | ||
ASSERT_TRUE(c != nullptr); | ||
std::unique_ptr<TrafficClass> c(CT("leaf", {LEAF})); | ||
ASSERT_TRUE(c.get() != nullptr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nit. should use ASSERT_NE
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Also replaced other similar assertions with ASSERT_NE.
Looks good! Will merge once CI finishes |
No description provided.