From: Michael Adam Date: Thu, 15 Jan 2009 22:34:00 +0000 (+0100) Subject: s3:nmbd: don't leak state_path() to talloc_tos() in wins_write_database() X-Git-Tag: samba-4.0.0alpha6~73 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=26e5e4f6fd07893d914ac9a397669b6b4097e0be;p=thirdparty%2Fsamba.git s3:nmbd: don't leak state_path() to talloc_tos() in wins_write_database() Michael --- diff --git a/source3/nmbd/nmbd_winsserver.c b/source3/nmbd/nmbd_winsserver.c index fecc5baac61..0a5b1c87647 100644 --- a/source3/nmbd/nmbd_winsserver.c +++ b/source3/nmbd/nmbd_winsserver.c @@ -2395,7 +2395,7 @@ void wins_write_database(time_t t, bool background) err_exit: SAFE_FREE(fnamenew); - /* fname is talloced and doesn't need to be freed */ + TALLOC_FREE(fname); if (background) { _exit(0);