Fix: return of free'd string on error in strutils_split()
[lttng-tools.git] / src / common / string-utils / string-utils.c
index c91d920e527799acec92b97b81108b32ce4c46df..8e1f516b6833eb96796e8bbf64cc33bb8d02e383 100644 (file)
@@ -355,7 +355,7 @@ char **strutils_split(const char *input, char delim, bool escape_delim)
 
 error:
        strutils_free_null_terminated_array_of_strings(substrings);
-
+       substrings = NULL;
 end:
        return substrings;
 }
This page took 0.023334 seconds and 4 git commands to generate.