Hi! > Signed-off-by: Wei,Jiangang <weijg.f...@cn.fujitsu.com> > --- > testcases/kernel/syscalls/dup2/dup205.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/testcases/kernel/syscalls/dup2/dup205.c > b/testcases/kernel/syscalls/dup2/dup205.c > index 14218dd..a77ae0d 100644 > --- a/testcases/kernel/syscalls/dup2/dup205.c > +++ b/testcases/kernel/syscalls/dup2/dup205.c > @@ -111,6 +111,7 @@ int main(int ac, char *av[]) > unlink(pfilname); > for (ifile = fildes[0]; ifile < min + 10; ifile++) > close(fildes[ifile]); > + free(fildes); > if (local_flag == PASSED) { > tst_resm(TPASS, "Test passed."); > } else {
Can you also move the allocation and free outside the TEST_LOOPING loop? Ideally to the cleanup and setup? -- Cyril Hrubis chru...@suse.cz ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list