Fix memory leak when setting the default USERAGENT
Merge pull request #3 from poupas/master

Memory leak when setting the default user agent