]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Parent the main config for radsniff from the autofree context
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 30 Jun 2018 14:31:36 +0000 (10:31 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 30 Jun 2018 14:31:36 +0000 (10:31 -0400)
src/main/radsniff.c

index eb6a730df7bedff800b48b55f48902f2bb1a6992..cf0a6fd6480a970e3a2a6e236617d5dfba3a16e2 100644 (file)
@@ -2220,7 +2220,7 @@ int main(int argc, char *argv[])
 
        talloc_set_log_stderr();
 
-       conf = talloc_zero(NULL, rs_t);
+       conf = talloc_zero(autofree, rs_t);
        RS_ASSERT(conf);
 
        stats = talloc_zero(conf, rs_stats_t);