mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
tests: Remove needless goto
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Pavol Žáčik <pzacik@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -67,7 +67,7 @@ struct arguments_st {
|
|||||||
static void free_arguments(struct arguments_st *arguments)
|
static void free_arguments(struct arguments_st *arguments)
|
||||||
{
|
{
|
||||||
if (arguments == NULL) {
|
if (arguments == NULL) {
|
||||||
goto end;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SAFE_FREE(arguments->address);
|
SAFE_FREE(arguments->address);
|
||||||
@@ -87,9 +87,6 @@ static void free_arguments(struct arguments_st *arguments)
|
|||||||
SAFE_FREE(arguments->config_file);
|
SAFE_FREE(arguments->config_file);
|
||||||
SAFE_FREE(arguments->log_file);
|
SAFE_FREE(arguments->log_file);
|
||||||
SAFE_FREE(arguments->pid_file);
|
SAFE_FREE(arguments->pid_file);
|
||||||
|
|
||||||
end:
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_ARGP_H
|
#ifdef HAVE_ARGP_H
|
||||||
|
|||||||
Reference in New Issue
Block a user