str_destroy
This commit is contained in:
@@ -57,8 +57,8 @@ Result(void) ClientCLI_run(ClientCLI* self) {
|
||||
str username = str_null, password = str_null;
|
||||
try_void(ClientCLI_askUserNameAndPassword(&username, &password));
|
||||
Defer(
|
||||
str_free(username);
|
||||
str_free(password);
|
||||
str_destroy(username);
|
||||
str_destroy(password);
|
||||
);
|
||||
Client_free(self->client);
|
||||
try(self->client, p, Client_create(username, password));
|
||||
@@ -85,7 +85,7 @@ Result(void) ClientCLI_run(ClientCLI* self) {
|
||||
Error_addCallPos(com_result.error, ErrorCallPos_here());
|
||||
str e_str = Error_toStr(com_result.error);
|
||||
printf("\n"FMT_str"\n", e_str.len, e_str.data);
|
||||
str_free(e_str);
|
||||
str_destroy(e_str);
|
||||
Error_free(com_result.error);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user