base: Fix leak in heim_string_create_with_format()
This commit is contained in:
@@ -182,7 +182,7 @@ heim_string_create_with_format(const char *fmt, ...)
|
|||||||
if (ret < 0 || str == NULL)
|
if (ret < 0 || str == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
s = heim_string_ref_create(str, string_dealloc);
|
s = heim_string_ref_create(str, free);
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
free(str);
|
free(str);
|
||||||
return s;
|
return s;
|
||||||
|
Reference in New Issue
Block a user