mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
tests/pkd: Properly clean up memory
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -35,7 +35,7 @@ struct pkd_daemon_args {
|
|||||||
unsigned int iterations;
|
unsigned int iterations;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
const char *mkdtemp_str;
|
char *mkdtemp_str;
|
||||||
} socket_wrapper;
|
} socket_wrapper;
|
||||||
} opts;
|
} opts;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -874,6 +874,8 @@ static int pkd_cleanup_socket_wrapper(void) {
|
|||||||
goto errrmdir;
|
goto errrmdir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(pkd_dargs.opts.socket_wrapper.mkdtemp_str);
|
||||||
|
|
||||||
goto out;
|
goto out;
|
||||||
errrmdir:
|
errrmdir:
|
||||||
errrmfiles:
|
errrmfiles:
|
||||||
|
|||||||
Reference in New Issue
Block a user