Changeset: dc855cc2812c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/dc855cc2812c
Modified Files:
clients/examples/C/streamcat.c
Branch: Aug2024
Log Message:
Fix use after free errors.
diffs (16 lines):
diff --git a/clients/examples/C/streamcat.c b/clients/examples/C/streamcat.c
--- a/clients/examples/C/streamcat.c
+++ b/clients/examples/C/streamcat.c
@@ -624,11 +624,10 @@ int cmd_bstream(char *argv[])
}
}
- mnstr_destroy(bs);
if (additional) {
mnstr_printf(s, "%s", additional);
}
- mnstr_close(s);
+ close_stream(bs); /* this also closes and
destroys s */
return 0;
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]