@@ -201,6 +201,9 @@ static int split_fields(char *part, int *n, struct xlstr **strs) {
int i, res;
char *c, *fld;
+ if(part==NULL || *part=='\0')
+ return -1;
+
*n = 0;
*strs = 0;
c = part;
@@ -219,6 +219,7 @@ void cmd_pipe_cb(int fd, short event, void *arg)
if (timerfd_settime(timerfd, 0, itime, NULL) == -1)
{
LM_ERR("Could not set timer.");
+ pkg_free(itime);
goto error;
}
pkg_free(itime);