Fix incorrect malloc.
Change memcpy to memmove in string_split_quotes

String destinations may overlap. Per Peter Bui from man pages, memmove
allows overlap, and memcpy does not.
Merge branch 'parse_leak'

Fix for Makeflow Parsing Error (#483)
Fixes a boundary case where the WQ master can get stuck if there
are only finished tasks to retrieve and nothing else happening in the system.
Replaced boilerplate.
Merge pull request #485 from dthain/master

Fix Work Queue hang when there are only finished tasks to retrieve.
Remove extra line.