Missing calls to free().
Must free temporary allocated string.
Copy temporaries into datastructure and free them afterwards.
Misplaced free().
Use buffer_free instead of free.
Free runpath_map. Free current_runpath indirectly through runpath_map.
Added missing free.
Merge pull request #430 from perroe/memory_leaks

Memory leaks