lib/repo-pull: Fix a potential minor leak
authorPhilip Withnall <withnall@endlessm.com>
Thu, 21 Sep 2017 15:01:44 +0000 (16:01 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 27 Sep 2017 16:38:07 +0000 (16:38 +0000)
commit030d2b1525a49c356210c18f57655afd9f474b4f
tree670beb9b6c602eb0038042c26cf56890ee973269
parentc6f972406e1f3b939c11252d343bb3e91299f8b9
lib/repo-pull: Fix a potential minor leak

If override-remote-name is specified in the options to
ostree_repo_pull_with_options(), but the remote_name_or_baseurl argument
is also set to a remote name, the override-remote-name would be leaked.

Note that this is currently an invalid configuration, so this leak is
basically never hit.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1202
Approved by: cgwalters
src/libostree/ostree-repo-pull.c