Skip to content

Commit

Permalink
currying a refcnt issue. We made new objects, there's exactly
Browse files Browse the repository at this point in the history
one reference at this point.
  • Loading branch information
postwait committed Apr 20, 2012
1 parent 4093319 commit 499a4e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fqd_listener.c
Expand Up @@ -54,6 +54,7 @@ conn_handler(void *vc) {
{
remote_client *newc = calloc(sizeof(*newc), 1);
memcpy(newc, client, sizeof(*client));
newc->refcnt = 1;
fqd_command_and_control_server(newc);
fqd_remote_client_deref((remote_client *)newc);
}
Expand All @@ -65,6 +66,7 @@ conn_handler(void *vc) {
remote_data_client *newc = calloc(sizeof(*newc), 1);
memcpy(newc, client, sizeof(*client));
newc->mode = ntohl(cmd);
newc->refcnt=1;
fqd_data_subscription_server(newc);
fqd_remote_client_deref((remote_client *)newc);
}
Expand Down

0 comments on commit 499a4e9

Please sign in to comment.