1
0
Fork 0

Free strings in test_cmd_alias

Regards https://github.com/profanity-im/profanity/issues/1019
This commit is contained in:
Michael Vetter 2019-10-06 18:45:53 +02:00
parent 5b19ed28ce
commit 98676613fd
1 changed files with 4 additions and 0 deletions

View File

@ -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)