chiark / gitweb /
path-util: set pointer to null after calling free()
authorMichal Sekletar <msekleta@redhat.com>
Thu, 13 Dec 2012 13:59:39 +0000 (14:59 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Dec 2012 10:41:31 +0000 (11:41 +0100)
commitc9c7aef24f9750bbd51d2c13beff66473d96bf3c
tree32acb467b38fd1f91b752769800fc1d532988138
parentd1d7caeeee65c11c54ee1ce0a878024715208a75
path-util: set pointer to null after calling free()

In cases where path_strv_canonicalize() returns NULL, strv_free() is
called afterwards and it will call free() on pointers which were freed
already in path_strv_canonicalize()
src/shared/path-util.c