Oops... memory leak -- forgot to free the daap tree after serializing

This commit is contained in:
Ron Pedde 2003-12-03 21:31:34 +00:00
parent ebf850a12e
commit a98bdfbf66
2 changed files with 1 additions and 1 deletions

View File

@ -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"

View File

@ -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;