Resolve leaks in the client

This commit is contained in:
2024-03-03 16:54:02 -05:00
parent a7992436b1
commit 7d9c451799

View File

@@ -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;
}