Fix memory leak on NULL

pull/1/head
Michael Santos 9 years ago
parent cf501f5fde
commit de7200819d

@ -92,8 +92,10 @@ xmppipe_servername(char *jid)
char *p = strchr(buf, '@');
char *q;
if (!p)
if (!p) {
free(buf);
return NULL;
}
*p++ = '\0';

Loading…
Cancel
Save