fixed obscure memleak if we do 0 entries


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14650 67ed7778-7388-44ab-90cf-0a291f65f57c
remove unused assignments (Coverity)


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14651 67ed7778-7388-44ab-90cf-0a291f65f57c
do not specify -g by default as suggested


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14652 67ed7778-7388-44ab-90cf-0a291f65f57c
do not set -g always, leave this to the builder


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14653 67ed7778-7388-44ab-90cf-0a291f65f57c
initialize storage


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14654 67ed7778-7388-44ab-90cf-0a291f65f57c
free setprops in error case (Coverity)


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14655 67ed7778-7388-44ab-90cf-0a291f65f57c
free raw in the ACK case too to avoid leak (Coverity)


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14656 67ed7778-7388-44ab-90cf-0a291f65f57c
cleanups of freeing raw (Coverity)


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14657 67ed7778-7388-44ab-90cf-0a291f65f57c
restructured realloc logic (Coverity)


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14658 67ed7778-7388-44ab-90cf-0a291f65f57c
avoid leaking catalog (Coverity)


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14659 67ed7778-7388-44ab-90cf-0a291f65f57c
avoid leaking msg (Coverity)


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14660 67ed7778-7388-44ab-90cf-0a291f65f57c
avoid leaking directory handle (Coverity)


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14661 67ed7778-7388-44ab-90cf-0a291f65f57c
free rawdata in one exit paht (Coverity)
avoid freeing a pointer into the frame_data


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14662 67ed7778-7388-44ab-90cf-0a291f65f57c
fixed some memory leaks in error paths (Coverity)


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14663 67ed7778-7388-44ab-90cf-0a291f65f57c
free catalog if no entries


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14664 67ed7778-7388-44ab-90cf-0a291f65f57c
check size retiurn value for error (Coverity)


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14665 67ed7778-7388-44ab-90cf-0a291f65f57c
check size for error return (Coverity)


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14666 67ed7778-7388-44ab-90cf-0a291f65f57c
check return value for error (Coverity)


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14667 67ed7778-7388-44ab-90cf-0a291f65f57c
check return values, exit on error (Coverity)


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14668 67ed7778-7388-44ab-90cf-0a291f65f57c
error exit on allocation failure
do not check cmd for NULL if we dereferenced it already (Coverity)


git-svn-id: svn://svn.code.sf.net/p/gphoto/code/trunk@14669 67ed7778-7388-44ab-90cf-0a291f65f57c