Browse Source

Closed memory leaks on lack of memory reported by cppcheck

master
Thomas Schmitt 7 years ago
parent
commit
1a15cc20f9
  1. 4
      xorriso/parse_exec.c
  2. 2
      xorriso/xorriso_timestamp.h

4
xorriso/parse_exec.c

@ -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 */

2
xorriso/xorriso_timestamp.h

@ -1 +1 @@
#define Xorriso_timestamP "2015.06.30.144252"
#define Xorriso_timestamP "2015.07.04.084911"

Loading…
Cancel
Save