Json mem leak#82
Conversation
|
|
||
| /************************Internal Functions Prototypes************************/ | ||
|
|
||
|
|
There was a problem hiding this comment.
I think the style is 2 blank line after the /** **/ declaration (even if it isn't lets not change only a few occurences)
|
|
||
| /****************************Internal functions*******************************/ | ||
|
|
||
|
|
koolzz
left a comment
There was a problem hiding this comment.
Good fix, just some style nits but overall approved.
|
@onvm do your thing |
CI MessageYour results will arrive shortly |
CI MessageRun successful see results: Linter Failedexamples/aes_decrypt/aes.c:523: If an else has a brace on one side, it should have it on both [readability/braces] [5] |
Fixes onvm web memory leak by deleting the cJSON objects upon exiting
Summary:
In order to avoid data leaks after running the web console of ONVM, cJSON objects initialized in onvm_stats.c needed to be freed. cJSON objects are created and destroyed with helper functions from /onvm/lib/cJSON.c. The code in onvm_stats_cleanup fixes this bug.
Usage:
Merging notes:
TODO before merging :
Test Plan:
Tested on a Wisconsin c220g2 cloudlab node with Ubuntu 14.04.1
Run using onvm web as the output - onvm_stats_cleanup code doesn't run on the standard onvm stdout
Review:
<onvm go args> -s web)