mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 14:26:21 +00:00
Free strings in test_cmd_alias
Regards https://github.com/profanity-im/profanity/issues/1019
This commit is contained in:
@@ -70,6 +70,8 @@ void cmd_alias_add_adds_alias(void **state)
|
||||
|
||||
char *returned_val = prefs_get_alias("hc");
|
||||
assert_string_equal("/help commands", returned_val);
|
||||
|
||||
free(returned_val);
|
||||
}
|
||||
|
||||
void cmd_alias_add_shows_message_when_exists(void **state)
|
||||
@@ -99,6 +101,8 @@ void cmd_alias_remove_removes_alias(void **state)
|
||||
|
||||
char *returned_val = prefs_get_alias("hn");
|
||||
assert_null(returned_val);
|
||||
|
||||
free(returned_val);
|
||||
}
|
||||
|
||||
void cmd_alias_remove_shows_message_when_no_alias(void **state)
|
||||
|
||||
Reference in New Issue
Block a user