X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ftracker.c;h=0f69c775b75f6d1c08e213fa547bcbbf5feb7daa;hb=74675e31d64f06986e335dffcb5e3ef5ce7c76c8;hp=532a924b56a772b3d55d11e611028ebf7267a7fe;hpb=159b042f34366d0fde5dcd73b4231c558922a664;p=lttng-tools.git diff --git a/src/common/tracker.c b/src/common/tracker.c index 532a924b5..0f69c775b 100644 --- a/src/common/tracker.c +++ b/src/common/tracker.c @@ -85,6 +85,7 @@ enum lttng_error_code process_attr_value_from_comm( name = strdup(value_view->data); if (!name) { ret = LTTNG_ERR_NOMEM; + goto error; } } @@ -173,6 +174,7 @@ enum lttng_error_code process_attr_value_from_comm( *_value = value; value = NULL; + free(name); return LTTNG_OK; error: free(name);