projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: lttng_trace_archive_location_serialize is called on freed memory
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
destruction-handle.c
diff --git
a/src/lib/lttng-ctl/destruction-handle.c
b/src/lib/lttng-ctl/destruction-handle.c
index 965a823d8085f8a1379399df87d4a733cbe696ba..6d8a26b113481914ff01e8e691d23eec23699750 100644
(file)
--- a/
src/lib/lttng-ctl/destruction-handle.c
+++ b/
src/lib/lttng-ctl/destruction-handle.c
@@
-59,7
+59,7
@@
void lttng_destruction_handle_destroy(struct lttng_destruction_handle *handle)
}
lttng_poll_clean(&handle->communication.events);
lttng_dynamic_buffer_reset(&handle->communication.buffer);
}
lttng_poll_clean(&handle->communication.events);
lttng_dynamic_buffer_reset(&handle->communication.buffer);
- lttng_trace_archive_location_
destroy
(handle->location);
+ lttng_trace_archive_location_
put
(handle->location);
free(handle);
}
free(handle);
}
@@
-173,6
+173,7
@@
int handle_state_transition(struct lttng_destruction_handle *handle)
ret = -1;
break;
} else {
ret = -1;
break;
} else {
+ /* Ownership is transferred to the destruction handle. */
handle->location = location;
handle->communication.state = COMMUNICATION_STATE_END;
}
handle->location = location;
handle->communication.state = COMMUNICATION_STATE_END;
}
This page took
0.024812 seconds
and
4
git commands to generate.