ostree/src
Colin Walters 0817be61a1 deploy: Correctly use libmount unref() calls rather than free()
We saw a random ostree SEGV start popping up in our CI environment:
https://github.com/projectatomic/rpm-ostree/pull/641#issuecomment-281870424

Looking at this code more and comparing it to what util-linux does, I noticed we
had a write-after-free, since `mnt_unref_table()` will invoke
`mnt_unref_cache()` on its cache, and that function does:

```
	if (cache) {
		cache->rfcount--;
```

unconditionally.

Fix this by using `unref()`.

Closes: #705
Approved by: jlebon
2017-02-23 15:31:25 +00:00
..
boot boot: Ensure we remount /var writable before systemd does journal flush 2016-09-15 19:41:44 +00:00
libostree deploy: Correctly use libmount unref() calls rather than free() 2017-02-23 15:31:25 +00:00
libotutil lib: Ensure an error is set in ensure_unlinked() if errno != ENOENT 2017-02-20 14:36:09 +00:00
ostree main: Make ostree --version output YAML (and add gitrev) 2017-02-22 18:57:18 +00:00
rofiles-fuse rofiles-fuse: Support write/read_buf() 2017-02-14 14:59:28 +00:00
switchroot ostree-prepare-root: Fix running with musl 2016-09-01 20:17:58 +00:00