Commit 16ae7211 authored by Felix Paul Kühne's avatar Felix Paul Kühne

debug logger: fix memory leak

parent 018edc7f
......@@ -197,6 +197,8 @@ static void HandleMessage(void *data,
char *str;
if (vasprintf(&str, fmt, args) == -1) {
if (str)
free(str);
return;
}
......@@ -204,4 +206,5 @@ static void HandleMessage(void *data,
return;
VKLog(@"%@", [NSString stringWithUTF8String:str]);
free(str);
}
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