Skip to content

Commit

Permalink
Update rclpy/src/rclpy/_rclpy.c
Browse files Browse the repository at this point in the history
Co-Authored-By: Jacob Perron <jacob@openrobotics.org>
  • Loading branch information
suab321321 and jacobperron authored Dec 9, 2019
1 parent 65cdafe commit 3dc8cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclpy/src/rclpy/_rclpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -4017,7 +4017,7 @@ rclpy_clock_get_now(PyObject * Py_UNUSED(self), PyObject * args)

rcl_time_point_t * time_point = (rcl_time_point_t *) PyMem_Malloc(sizeof(rcl_time_point_t));
if (!time_point) {
PyErr_Format(PyErr_NoMemory, "Failed to allocate memory for time point.");
PyErr_Format(PyExc_MemoryError, "Failed to allocate memory for time point.");
return NULL;
}
time_point->clock_type = clock->type;
Expand Down

0 comments on commit 3dc8cbe

Please sign in to comment.