Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dbus: fix a memory leak
  • Loading branch information
perexg committed Sep 1, 2014
1 parent 6583122 commit 1b3fe3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dbus.c
Expand Up @@ -61,14 +61,15 @@ static int dbus_session;
void
dbus_emit_signal(const char *obj_name, const char *sig_name, htsmsg_t *msg)
{
dbus_sig_t *ds = calloc(1, sizeof(dbus_sig_t));
dbus_sig_t *ds;
int unused __attribute__((unused));
size_t l;

if (!dbus_running) {
htsmsg_destroy(msg);
return;
}
ds = calloc(1, sizeof(dbus_sig_t));
l = strlen(obj_name);
ds->obj_name = malloc(l + 15);
strcpy(ds->obj_name, "/org/tvheadend");
Expand Down

0 comments on commit 1b3fe3d

Please sign in to comment.