Skip to content
Browse files

Merge pull request #256 from yuusuke/fix_memory_leak

Fix memory leak
  • Loading branch information...
2 parents 7e42d77 + 6946f9b commit e81387fe455cd02ebb52ac9603944c317b738328 @beekhof beekhof committed
Showing with 4 additions and 0 deletions.
  1. +3 −0 lib/common/ipc.c
  2. +1 −0 lib/services/services.c
View
3 lib/common/ipc.c
@@ -1082,6 +1082,9 @@ crm_ipc_send(crm_ipc_t * client, xmlNode * message, enum crm_ipc_flags flags, in
crm_info("Request was %.120s", buffer);
}
+ free(header);
+ free(iov[1].iov_base);
+ free(iov);
free(buffer);
return rc;
}
View
1 lib/services/services.c
@@ -311,6 +311,7 @@ services_action_free(svc_action_t * op)
free(op->opaque->args[i]);
}
+ free(op->opaque);
free(op->rsc);
free(op->action);

0 comments on commit e81387f

Please sign in to comment.
Something went wrong with that request. Please try again.