Permalink
Browse files

Fix: cib: Prevent use-after-free when cleaning up after query operations

  • Loading branch information...
1 parent 007117a commit d2e411240a88bb001a5f6c632b93759e7de0c92e @beekhof committed Mar 4, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 cib/callbacks.c
View
@@ -1235,6 +1235,7 @@ cib_process_command(xmlNode * request, xmlNode ** reply, xmlNode ** cib_diff, gb
if (cib_op_modifies(call_type) == FALSE && output != current_cib) {
free_xml(output);
+ output = NULL;
}
if (call_type >= 0) {

0 comments on commit d2e4112

Please sign in to comment.