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 3dc8cbe commit d3428a4
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 @@ -3974,7 +3974,7 @@ rclpy_create_clock(PyObject * Py_UNUSED(self), PyObject * args)

rcl_clock_t * clock = (rcl_clock_t *)PyMem_Malloc(sizeof(rcl_clock_t));
if (!clock) {
PyErr_Format(PyErr_NoMemory, "Failed to allocate memory for clock.");
PyErr_Format(PyExc_MemoryError, "Failed to allocate memory for clock.");
return NULL;
}
rcl_allocator_t allocator = rcl_get_default_allocator();
Expand Down

0 comments on commit d3428a4

Please sign in to comment.