Closed a memory leak with message sieve. Coverity CID 28739.

This commit is contained in:
Thomas Schmitt 2015-11-03 12:57:37 +00:00
parent d5130abb96
commit 2d4097d80c
2 changed files with 3 additions and 1 deletions

View File

@ -2198,6 +2198,8 @@ int Xorriso_sieve_filter_msg(struct XorrisO *xorriso, char *msg, int flag)
if(strncmp(prefix, msg, strlen(prefix)) != 0) if(strncmp(prefix, msg, strlen(prefix)) != 0)
continue; continue;
if (to_parse != NULL)
free(to_parse);
to_parse= strdup(msg); to_parse= strdup(msg);
if(to_parse == NULL) if(to_parse == NULL)
goto no_mem; goto no_mem;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2015.11.03.125130" #define Xorriso_timestamP "2015.11.03.125655"