]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolve: fix two minor memory leaks 667/head
authorLennart Poettering <lennart@poettering.net>
Thu, 23 Jul 2015 01:24:08 +0000 (03:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 23 Jul 2015 01:26:01 +0000 (03:26 +0200)
commit2c1fb4f71206bf970d493294208c5d7597194856
tree3e655d19b3f8eaeda8c076e5e9afbfa679d12a3e
parent6aafa9483d167f55a50e01f4dc5984866f12c8ec
resolve: fix two minor memory leaks

strv_extend() already strdup()s internally, no need to to this twice.
(Also, was missing OOM check...).

Use strv_consume() when we already have a string allocated whose
ownership we want to pass to the strv.

This fixes 50f1e641a93cacfc693b0c3d300bee5df0c8c460.
src/resolve/resolved-dns-rr.c