Resolve leaks in the client
This commit is contained in:
@@ -36,10 +36,15 @@ int main(int argc, char **argv) {
|
||||
char *res = zmsg_popstr(rep);
|
||||
printf("Res:\n%s\n", res);
|
||||
|
||||
zmsg_destroy(&msg);
|
||||
free(res);
|
||||
|
||||
zmsg_destroy(&msg);
|
||||
zmsg_destroy(&rep);
|
||||
zsock_destroy(&daemon);
|
||||
free(command->name);
|
||||
free(command->args.ls.paths[0]);
|
||||
free(command->args.ls.paths);
|
||||
free(command);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user