X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=9fcceab1f3149c2c5e17a3e68d4ee1b60fc4932c;hp=2f4ec903a2f9b849f1d0c32121400dfda5368844;hb=c14cc49149d98338f8fcd42c360b937f5ddb3990;hpb=9482daac152865fcc4c2609ce89a2de473abc138 diff --git a/src/common/utils.c b/src/common/utils.c index 2f4ec903a..9fcceab1f 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -124,6 +124,7 @@ char *utils_partial_realpath(const char *path, char *resolved_path, size_t size) /* Free the allocated memory */ free(cut_path); + cut_path = NULL; }; /* Allocate memory for the resolved path if necessary */