X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=bf6751ebb95c4e121d4e8a2bf9c45dd858d4efe2;hb=ac54ff8c1d44a38e03076a0a02cab47295296f29;hp=d4ff94c7a09680308516e9cd6301b6ce8003844d;hpb=88d9d15aeb58b8cc6d45a61e388991c4491d556f;p=lttng-tools.git diff --git a/src/common/utils.c b/src/common/utils.c index d4ff94c7a..bf6751ebb 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -121,6 +121,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 */