Files
libguestfs/diff
Pino Toscano ca175108c4 diff: avoid potential null pointer dereference on error
If visit_guest() fails, then it returns a null pointer; later on,
free_tree() is called unconditionally on the variables, thus
dereferencing null pointers.

As a solution, make free_tree() behave like free(), i.e. become no-op
with null pointers.
2017-11-06 12:42:27 +01:00
..