rbuf, tools: clean up rbuf usage.
[ccan] / ccan / rbuf / test / run-all.c
index d7c1a3f1e32964379756c91ca5b8962dac7eaaa3..c41ee20dd8083216448048c434b757f2f1b6b25c 100644 (file)
@@ -54,7 +54,7 @@ int main(void)
                }
                rbuf_consume(&in, sizeof(buf));
        }
-       free(membuf_cleanup(&in.m));
+       free(rbuf_cleanup(&in));
 
        /* This exits depending on whether all tests passed */
        return exit_status();