-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Description
Hello,
since I'm trying to get good knowledge of the GSS attribute exportation code, I've come across the use of realloc, which is surprising to me given that memory is usually allocated by means of apr_* functions and pools. Is not realloc using plain "malloc" underneath? If so, shouldn't the code use the pool?
I've seen two uses of realloc corresponding to the GSS attribute handling.
-
https://github.com/modauthgssapi/mod_auth_gssapi/blob/master/src/mod_auth_gssapi.c#L1631-L1644
Here it seems that at least a cleanup fnc is registered, so memory should be freed. -
https://github.com/modauthgssapi/mod_auth_gssapi/blob/master/src/environ.c#L43-L51
In this case, I don't see any cleanup function. How is this memory freed?
Metadata
Metadata
Assignees
Labels
No labels