sap: fix potential memory leak (cid #1048940)
rtsp: fix memory leaks and factorize (cid #1048938)
audioscrobbler: factorize test and fix potential memleak
audioscrobbler: fix memory leak (cid #1048937 and others)
lua sd: fix potential memory leaks (cdi #1048936)