/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to plugins.d/usplash.c

  • Committer: Teddy Hogeborn
  • Date: 2008-09-26 19:27:46 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080926192746-zeo232bifine962h
* plugins.d/usplash.c (main): Bug fix: Do not free "cmdline" too soon.

Show diffs side-by-side

added added

removed removed

Lines of Context:
431
431
      position += strlen(cmdline + position) + 1;
432
432
    }
433
433
    cmdline_argv[cmdline_argc] = NULL;
434
 
    free(cmdline);
435
434
  }
436
435
  /* Kill old usplash */
437
436
    kill(usplash_pid, SIGTERM);
464
463
    
465
464
    execv(usplash_name, cmdline_argv);
466
465
    perror("execv");
 
466
    free(cmdline);
467
467
    free(cmdline_argv);
468
468
    _exit(EXIT_FAILURE);
469
469
  }
 
470
  free(cmdline);
470
471
  free(cmdline_argv);
471
472
  sleep(2);
472
473
  if(not usplash_write("PULSATE", NULL)