From: Alan T. DeKok Date: Tue, 24 Oct 2017 12:37:57 +0000 (-0400) Subject: dump use after free X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=336ca01f1c1993fa555a945a67d9b3fd6b5a2f5f;p=thirdparty%2Ffreeradius-server.git dump use after free --- diff --git a/src/main/radsniff.c b/src/main/radsniff.c index c36666c1b63..623930b9f9f 100644 --- a/src/main/radsniff.c +++ b/src/main/radsniff.c @@ -2877,12 +2877,12 @@ int main(int argc, char *argv[]) finish: cleanup = true; + if (conf->daemonize) unlink(conf->pidfile); + /* * Free all the things! This also closes all the sockets and file descriptors */ talloc_free(conf); - if (conf->daemonize) unlink(conf->pidfile); - return ret; }