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);
|
char *res = zmsg_popstr(rep);
|
||||||
printf("Res:\n%s\n", res);
|
printf("Res:\n%s\n", res);
|
||||||
|
|
||||||
zmsg_destroy(&msg);
|
|
||||||
free(res);
|
free(res);
|
||||||
|
zmsg_destroy(&msg);
|
||||||
|
zmsg_destroy(&rep);
|
||||||
zsock_destroy(&daemon);
|
zsock_destroy(&daemon);
|
||||||
|
free(command->name);
|
||||||
|
free(command->args.ls.paths[0]);
|
||||||
|
free(command->args.ls.paths);
|
||||||
|
free(command);
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user