@henningw commented on this pull request.
> + LM_CRIT("null callback function\n");
+ return E_BUG;
+ }
+
+ /* build a new callback structure */
+ if ( types & PCSCF_CONTACT_UPDATE){
+ if (!(cbp_registrar=(struct ul_callback*)shm_malloc(sizeof( struct
ul_callback)))) {
+ LM_ERR("no more share mem\n");
+ return E_OUT_OF_MEM;
+ }
+ cbp_registrar->callback = f;
+ }
+ else{
+ if (!(cbp_qos=(struct ul_callback*)shm_malloc(sizeof( struct
ul_callback)))) {
+ LM_ERR("no more share mem\n");
+ return E_OUT_OF_MEM;
I made a mistake, its if/else case so its not executed both
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3279#discussion_r1032476561
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3279/review/[email protected]>_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev