pkgng/pkgng — pull request #145 by culot (2012-02-07 10:20:14+00:00)
Title: pkg/update.c cleanup

The following 3 changes were applied:

* Use a stack-based instead of a heap-based storage for temporary file
path to avoid unnecessary memory allocation/deallocation. Also check
for temporary file creation failure.

* Remove unneeded unlink() as it is already done in pkg_fetch_file() in
case fetch failed.

* Perform cleanup in case of invalid signature.