diff options
author | Ryo Nakamura <upa@haeena.net> | 2023-02-26 23:56:57 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2023-02-26 23:56:57 +0900 |
commit | fc45fa2532b37e4c36b2a78b882dbbba85336ff2 (patch) | |
tree | fae4f466ed2a68f71b4bae6d007e83ec3a0c8080 /src/mscp.c | |
parent | ca0ea3ee77f8a65ebe2955008715aec49b0f2c94 (diff) |
add comments to mscp.h
Diffstat (limited to 'src/mscp.c')
-rw-r--r-- | src/mscp.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -16,7 +16,7 @@ #include <mscp.h> struct mscp { - const char *remote; /* remote host (and uername) */ + char *remote; /* remote host (and uername) */ struct mscp_opts *opts; struct ssh_opts ssh_opts; @@ -597,6 +597,10 @@ void mscp_cleanup(struct mscp *m) void mscp_free(struct mscp *m) { mscp_cleanup(m); + if (m->remote) + free(m->remote); + if (m->cores) + free(m->cores); free(m); } |