mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Free strings in test_cmd_alias
Regards https://github.com/profanity-im/profanity/issues/1019
This commit is contained in:
parent
5b19ed28ce
commit
98676613fd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user