mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-23 19:17:46 -05:00
Oops... memory leak -- forgot to free the daap tree after serializing
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <zlib.h>
|
||||
|
||||
#include "daap-proto.h"
|
||||
#include "err.h"
|
||||
|
||||
@@ -203,6 +203,7 @@ void daap_handler(WS_CONNINFO *pwsc) {
|
||||
*/
|
||||
|
||||
daap_serialize(root,pwsc->fd,0);
|
||||
daap_free(root);
|
||||
} else {
|
||||
/* stream out the song */
|
||||
pwsc->close=1;
|
||||
|
||||
Reference in New Issue
Block a user