Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix: fixed a memory leak in lrmd.

==32476== 20,960 bytes in 10 blocks are definitely lost in loss record 42 of 42
==32476==    at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==32476==    by 0x4E63364: resources_action_create (services.c:106)
==32476==    by 0x404419: lrmd_rsc_dispatch (lrmd.c:858)
==32476==    by 0x4C4A762: crm_trigger_dispatch (mainloop.c:105)
==32476==    by 0x3476438F0D: g_main_context_dispatch (in /lib64/libglib-2.0.so.0.2200.5)
==32476==    by 0x347643C937: ??? (in /lib64/libglib-2.0.so.0.2200.5)
==32476==    by 0x347643CD54: g_main_loop_run (in /lib64/libglib-2.0.so.0.2200.5)
==32476==    by 0x4023C7: main (main.c:303)
  • Loading branch information...
commit 237ca7065312879a28be5d24d1d8222e59acd850 1 parent 7e42d77
yusuke authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/services/services.c
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);
Please sign in to comment.
Something went wrong with that request. Please try again.