mdns_msg.c: always call va_end

Fixes: CID#207546
Change-Id: I39829e78619a6412618e1140ff9b1185bad975bd
This commit is contained in:
Oliver Smith 2020-01-13 14:57:18 +01:00
parent f55f605931
commit b1775162ea
1 changed files with 1 additions and 1 deletions

View File

@ -213,9 +213,9 @@ struct osmo_mdns_record *osmo_mdns_record_txt_keyval_encode(void *ctx, const cha
va_start(ap, value_fmt);
value = talloc_vasprintf(ctx, value_fmt, ap);
va_end(ap);
if (!value)
return NULL;
va_end(ap);
r = _osmo_mdns_record_txt_encode(ctx, key, value);
talloc_free(value);
return r;