/[baselayout]/trunk/src/librc-daemon.c
Gentoo

Diff of /trunk/src/librc-daemon.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2634 Revision 2822
513 } 513 }
514 514
515 fclose (fp); 515 fclose (fp);
516 free (pidfile); 516 free (pidfile);
517 pidfile = NULL; 517 pidfile = NULL;
518
519 /* We have the pid, so no need to match on name */
520 free (exec);
521 exec = NULL;
522 free (name);
523 name = NULL;
518 } 524 }
519 525
520 if ((pids = rc_find_pids (exec, name, 0, pid)) == NULL) { 526 if ((pids = rc_find_pids (exec, name, 0, pid)) == NULL) {
521 retval = true; 527 retval = true;
522 break; 528 break;
523 } 529 }
524 free (pids); 530 free (pids);
525 531
526 if (exec) {
527 free (exec);
528 exec = NULL;
529 }
530 if (name) {
531 free (name);
532 name = NULL;
533 }
534 }
535
536 if (exec) {
537 free (exec); 532 free (exec);
538 exec = NULL; 533 exec = NULL;
539 }
540 if (name) {
541 free (name); 534 free (name);
542 name = NULL; 535 name = NULL;
543 } 536 }
544 537
538 free (exec);
539 free (name);
545 free (dirpath); 540 free (dirpath);
546 rc_strlist_free (files); 541 rc_strlist_free (files);
547 542
548 return (retval); 543 return (retval);
549} 544}

Legend:
Removed from v.2634  
changed lines
  Added in v.2822

  ViewVC Help
Powered by ViewVC 1.1.20