Merge pull request #2206 from martinetd/leaks

Fix a bunch of leaks
This commit is contained in:
Drew DeVault 2018-07-06 08:43:33 -07:00 committed by GitHub
commit 817e847749
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 30 additions and 11 deletions

View file

@ -79,7 +79,7 @@ void free_cmd_results(struct cmd_results *results);
*
* Free the JSON string later on.
*/
const char *cmd_results_to_json(struct cmd_results *results);
char *cmd_results_to_json(struct cmd_results *results);
struct cmd_results *add_color(const char *name,
char *buffer, const char *color);