~ubuntu-branches/ubuntu/feisty/syslog-ng/feisty-security

« back to all changes in this revision

Viewing changes to src/afprog.c

  • Committer: Bazaar Package Importer
  • Author(s): SZALAY Attila
  • Date: 2006-10-25 22:06:48 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20061025220648-tv5ow8see2745huo
Tags: upstream-2.0rc3
ImportĀ upstreamĀ versionĀ 2.0rc3

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
      log_pipe_deinit(&self->super.super, NULL, NULL);
62
62
      log_pipe_init(&self->super.super, NULL, NULL);
63
63
    }
64
 
  /* drop reference, init rereferences us as it registers the callback */
65
 
  log_pipe_unref(&self->super.super);
66
64
}
67
65
 
68
66
static gboolean
115
113
    {
116
114
      /* parent */
117
115
      
118
 
      child_manager_register(self->pid, afprogram_dd_exit, self);
119
 
      log_pipe_ref(s); /* child manager holds a reference */
 
116
      child_manager_register(self->pid, afprogram_dd_exit, log_pipe_ref(&self->super.super), (GDestroyNotify) log_pipe_unref);
120
117
      
121
118
      g_fd_set_cloexec(msg_pipe[1], TRUE);
122
119
      close(msg_pipe[0]);
154
151
 
155
152
  log_pipe_unref(self->writer);  
156
153
  g_string_free(self->cmdline, TRUE);
 
154
  log_writer_options_destroy(&self->writer_options);
157
155
  log_drv_free_instance(&self->super);
158
156
  g_free(self);
159
157
}