Skip to content

Commit

Permalink
call group_free in server code (#59)
Browse files Browse the repository at this point in the history
* stop server from leaking memory when a transaction finishes

* use tabs not spaces
  • Loading branch information
mrbojangles3 committed Mar 1, 2023
1 parent dc7c68a commit 0536b0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/slave.c
Expand Up @@ -359,6 +359,7 @@ slave_master(protocol_t *p)
uperf_log_flush();
/* fprintf(stderr, "%ld: master-slave exiting\n", getpid()); */
p->disconnect(p);
group_free(shm->worklist);
free(shm);

return (0);
Expand Down

0 comments on commit 0536b0b

Please sign in to comment.