Pass NULL instead of the unused GError
Fix memory leak