Fix: uprobe: missing error code on allocation failure
[lttng-tools.git] / src / common / userspace-probe.c
index 508c9e8d4480a8a99216e7a3792a6555dd534d3f..16c879df236e4c0250ad40682a8e6148df775c5f 100644 (file)
@@ -1096,12 +1096,14 @@ int lttng_userspace_probe_location_function_create_from_buffer(
        function_name = lttng_strndup(function_name_src, LTTNG_SYMBOL_NAME_LEN);
        if (!function_name) {
                PERROR("lttng_strndup");
+               ret = -LTTNG_ERR_NOMEM;
                goto end;
        }
 
        binary_path = lttng_strndup(binary_path_src, LTTNG_PATH_MAX);
        if (!binary_path) {
                PERROR("lttng_strndup");
+               ret = -LTTNG_ERR_NOMEM;
                goto end;
        }
 
This page took 0.023304 seconds and 4 git commands to generate.