Closed a memory leak with message sieve. Coverity CID 28739.
This commit is contained in:
parent
1241941203
commit
db47420120
@ -2198,6 +2198,8 @@ int Xorriso_sieve_filter_msg(struct XorrisO *xorriso, char *msg, int flag)
|
||||
if(strncmp(prefix, msg, strlen(prefix)) != 0)
|
||||
continue;
|
||||
|
||||
if (to_parse != NULL)
|
||||
free(to_parse);
|
||||
to_parse= strdup(msg);
|
||||
if(to_parse == NULL)
|
||||
goto no_mem;
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2015.11.03.125130"
|
||||
#define Xorriso_timestamP "2015.11.03.125655"
|
||||
|
Loading…
Reference in New Issue
Block a user