diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-01 12:19:06 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-01 12:22:02 +0100 |
commit | 2b7cc14992febe2a6c07f01d0106c4537d6ab9f0 (patch) | |
tree | b5d33e18977418bd4092bb2b1b07ad443dc3faa1 /console-client | |
parent | 411974d39d0e231db80c03854d27b9bec16bfa86 (diff) | |
download | hurd-2b7cc14992febe2a6c07f01d0106c4537d6ab9f0.tar.gz hurd-2b7cc14992febe2a6c07f01d0106c4537d6ab9f0.tar.bz2 hurd-2b7cc14992febe2a6c07f01d0106c4537d6ab9f0.zip |
console-client: Fix erroneous free on error
Diffstat (limited to 'console-client')
-rw-r--r-- | console-client/trans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/console-client/trans.c b/console-client/trans.c index 49e30a61..78716f34 100644 --- a/console-client/trans.c +++ b/console-client/trans.c @@ -814,7 +814,7 @@ console_create_consnode (const char *name, consnode_t *cn) (*cn)->name = strdup (name); if (!(*cn)->name) { - free (cn); + free (*cn); return ENOMEM; } |