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