free malloc array after GRBupdatemodel in C?
AnsweredDear Gurobi-team,
I have a question regarding the C-API:
I use malloc to allocate memory for the arrays for *cind, *cval in GRBaddconstr etc.
Can I de-allocate the memory of the arrays with free() AFTER calling GRBupdatemodel or does Gurobi still refer to them?
Best regards
Thomas
0
-
Hi Thomas,
You are safe to free your arrays after calling GRBupdatemodel.
Best regards,
Jaromił0
Please sign in to leave a comment.
Comments
1 comment