We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 962ba07 + f33f1d8 commit f103dd4Copy full SHA for f103dd4
modules/rtpengine/rtpengine.c
@@ -1232,15 +1232,16 @@ mod_init(void)
1232
1233
rtpe_no = (unsigned int*)shm_malloc(sizeof(unsigned int));
1234
list_version = (unsigned int*)shm_malloc(sizeof(unsigned int));
1235
- *rtpe_no = 0;
1236
- *list_version = 0;
1237
- my_version = 0;
1238
1239
if(!rtpe_no || !list_version) {
1240
LM_ERR("No more shared memory\n");
1241
return -1;
1242
}
1243
+ *rtpe_no = 0;
+ *list_version = 0;
+ my_version = 0;
1244
+
1245
if (!(rtpe_set_list = (struct rtpe_set_head **)
1246
shm_malloc(sizeof(struct rtpe_set_head *)))) {
1247
LM_ERR("no more shm mem\n");
0 commit comments