Unverified Commit f0e0ab1f by 2xsec Committed by Christian Brauner

coverity: #1438236

Resource leak Signed-off-by: 's avatar2xsec <dh48.jeong@samsung.com>
parent dcaf4640
......@@ -776,8 +776,10 @@ static char *cgv1_must_prefix_named(char *entry)
s = must_alloc(len + 6);
ret = snprintf(s, len + 6, "name=%s", entry);
if (ret < 0 || (size_t)ret >= (len + 6))
if (ret < 0 || (size_t)ret >= (len + 6)) {
free(s);
return NULL;
}
return s;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment