]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - playlist.c
afs: Introduce flush_and_free_pb().
[paraslash.git] / playlist.c
index 46333a00eef684cac5c3f5812811551875e8ad2a..2c5b67777e2f0b41671bc436e3ef7b02f83e6740 100644 (file)
@@ -140,9 +140,7 @@ void playlist_check_callback(int fd, __a_unused const struct osl_object *query)
        para_printf(&pb, "checking playlists...\n");
        osl_rbtree_loop(playlists_table, BLOBCOL_ID, &pb,
                check_playlist);
-       if (pb.offset)
-               pass_buffer_as_shm(fd, SBD_OUTPUT, pb.buf, pb.offset);
-       free(pb.buf);
+       flush_and_free_pb(&pb);
 }
 
 /**