> -----邮件原件----- > 发件人: Cyril Hrubis [mailto:[email protected]] > 发送时间: 2015年7月22日 20:26 > 收件人: Wei, Jiangang/魏 建刚 > 抄送: [email protected] > 主题: Re: [LTP] [PATCH 2/2] pan/splitstr.c: free arg_string before > return > > Hi! > > diff --git a/pan/splitstr.c b/pan/splitstr.c > > index 39b4698..608c682 100644 > > --- a/pan/splitstr.c > > +++ b/pan/splitstr.c > > @@ -136,6 +136,7 @@ const char **splitstr(const char *str, const char > *separator, int *argcount) > > if (argcount != NULL) > > *argcount = num_toks; > > > > + free(arg_string); > > I've explained why this is wrong before, didn't I? > Yes,You had. Sorry for my neglect.
Thanks, wei > -- > Cyril Hrubis > [email protected] ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
