Closed memory leaks on lack of memory reported by cppcheck
This commit is contained in:
parent
99b8a71f34
commit
1a15cc20f9
@ -2576,7 +2576,7 @@ int Xorriso_program_arg_bsl(struct XorrisO *xorriso, int argc, char ***argv,
|
||||
Xorriso_alloc_meM(cmd_data, char, cmd_data_size);
|
||||
new_argv= (char **) Smem_malloC(argc * sizeof(char *));
|
||||
if(new_argv == NULL)
|
||||
return(-1);
|
||||
{ret= -1; goto ex;}
|
||||
for(i= 0; i < argc; i++) {
|
||||
new_argv[i]= strdup((*argv)[i]);
|
||||
if(new_argv[i] == NULL)
|
||||
@ -2864,7 +2864,7 @@ int Xorriso_execv(struct XorrisO *xorriso, char *cmd,
|
||||
|
||||
child_pid= fork();
|
||||
if(child_pid==-1)
|
||||
return(-1);
|
||||
{ret= -1; goto ex;}
|
||||
|
||||
if(child_pid==0) {
|
||||
/* this is the child process */
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2015.06.30.144252"
|
||||
#define Xorriso_timestamP "2015.07.04.084911"
|
||||
|
Loading…
Reference in New Issue
Block a user