Free various struct membuffer in different functions

Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
Stefan Fuchs 2018-01-22 20:29:55 +01:00 committed by Dirk Hohndel
parent d6c8edc2db
commit b5ce06c8b9
4 changed files with 5 additions and 1 deletions

View file

@ -42,6 +42,7 @@ void subsurface_user_info(struct user_info *user)
gethostname(hostname, sizeof(hostname));
put_format(&mb, "%s@%s", username, hostname);
user->email = mb_cstring(&mb);
free_buffer(&mb);
}
}