commit | b1775162ea6807f547e1cd1bcabc5b0082c8f52e | [log] [tgz] |
---|---|---|
author | Oliver Smith <osmith@sysmocom.de> | Mon Jan 13 14:57:18 2020 +0100 |
committer | Oliver Smith <osmith@sysmocom.de> | Mon Jan 13 14:57:18 2020 +0100 |
tree | 38473b56ae668861c9bb4acff6224b888ca2bed1 | |
parent | f55f60593175d0eb9311bc247a48ca49591e13ea [diff] |
mdns_msg.c: always call va_end Fixes: CID#207546 Change-Id: I39829e78619a6412618e1140ff9b1185bad975bd
diff --git a/src/mslookup/mdns_msg.c b/src/mslookup/mdns_msg.c index da65fef..78ea67a 100644 --- a/src/mslookup/mdns_msg.c +++ b/src/mslookup/mdns_msg.c
@@ -213,9 +213,9 @@ 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;