mdns_msg.c: always call va_end
Fixes: CID#207546 Change-Id: I39829e78619a6412618e1140ff9b1185bad975bd
This commit is contained in:
parent
f55f605931
commit
b1775162ea
|
@ -213,9 +213,9 @@ struct osmo_mdns_record *osmo_mdns_record_txt_keyval_encode(void *ctx, const cha
|
||||||
|
|
||||||
va_start(ap, value_fmt);
|
va_start(ap, value_fmt);
|
||||||
value = talloc_vasprintf(ctx, value_fmt, ap);
|
value = talloc_vasprintf(ctx, value_fmt, ap);
|
||||||
|
va_end(ap);
|
||||||
if (!value)
|
if (!value)
|
||||||
return NULL;
|
return NULL;
|
||||||
va_end(ap);
|
|
||||||
r = _osmo_mdns_record_txt_encode(ctx, key, value);
|
r = _osmo_mdns_record_txt_encode(ctx, key, value);
|
||||||
talloc_free(value);
|
talloc_free(value);
|
||||||
return r;
|
return r;
|
||||||
|
|
Loading…
Reference in New Issue