svn commit: samba r24825 - in branches: SAMBA_3_2/source/utils
SAMBA_3_2_0/source/utils
obnox at samba.org
obnox at samba.org
Fri Aug 31 09:15:59 GMT 2007
Author: obnox
Date: 2007-08-31 09:15:57 +0000 (Fri, 31 Aug 2007)
New Revision: 24825
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24825
Log:
Give testparm an initial talloc stackframe, so it does not complain
it is leaking.
Modified:
branches/SAMBA_3_2/source/utils/testparm.c
branches/SAMBA_3_2_0/source/utils/testparm.c
Changeset:
Modified: branches/SAMBA_3_2/source/utils/testparm.c
===================================================================
--- branches/SAMBA_3_2/source/utils/testparm.c 2007-08-31 09:10:54 UTC (rev 24824)
+++ branches/SAMBA_3_2/source/utils/testparm.c 2007-08-31 09:15:57 UTC (rev 24825)
@@ -220,6 +220,8 @@
POPT_TABLEEND
};
+ TALLOC_CTX *frame = talloc_stackframe();
+
load_case_tables();
pc = poptGetContext(NULL, argc, argv, long_options,
@@ -395,6 +397,7 @@
}
}
}
+ TALLOC_FREE(frame);
return(ret);
}
Modified: branches/SAMBA_3_2_0/source/utils/testparm.c
===================================================================
--- branches/SAMBA_3_2_0/source/utils/testparm.c 2007-08-31 09:10:54 UTC (rev 24824)
+++ branches/SAMBA_3_2_0/source/utils/testparm.c 2007-08-31 09:15:57 UTC (rev 24825)
@@ -220,6 +220,8 @@
POPT_TABLEEND
};
+ TALLOC_CTX *frame = talloc_stackframe();
+
load_case_tables();
pc = poptGetContext(NULL, argc, argv, long_options,
@@ -395,6 +397,7 @@
}
}
}
+ TALLOC_FREE(frame);
return(ret);
}
More information about the samba-cvs
mailing list