s3:nmbd: don't leak state_path() to talloc_tos() in wins_write_database()
authorMichael Adam <obnox@samba.org>
Thu, 15 Jan 2009 22:34:00 +0000 (23:34 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 16 Jan 2009 00:02:21 +0000 (01:02 +0100)
Michael

source3/nmbd/nmbd_winsserver.c

index fecc5baac6134b1d6025aca878ea1e6063b92bb6..0a5b1c876477150360f595de1ea08a5f73f03b2c 100644 (file)
@@ -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);