byuflowlab / Mex.jl

Embedding Julia in the MATLAB process.
MIT License
34 stars 8 forks source link

String Safety #20

Open bolognam opened 5 months ago

bolognam commented 5 months ago

Use strdup for string safety.

@topolarity also saw that lib wasn't being handled properly, and that if this function doesn't finish then there's a memory leak.

topolarity commented 5 months ago

if this function doesn't finish then there's a memory leak.

I actually misunderstood and thought that we had an obligation to free the arguments passed into this function - We don't, so this is fine 👍