yois615
965e88a6b0
[core, mod_cidlookup] Free memory allocated via strdup
...
In mod_cidlookup and several other modules, config parameters
are read from external XML files using the SWITCH_CONFIG_ITEM_STRING_STRDUP
method. These items do not have string_options, and are not freed
with switch_xml_config_cleanup. We therefore need to call switch_safe_free
for config without string_options. We also add switch_xml_config_cleanup
to mod_cidlookup. There are other modules that may be affected but this
commit makes no attempt at fixing those.
Fixes #1752
2023-03-28 01:47:23 +03:00
Stefan Weil
6609ce9510
Fix some typos (most found by codespell)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-02-24 13:59:11 +01:00
Andrey Volk
2bf545a18b
FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_xml_config.c
2019-07-15 23:46:07 +04:00
Sergey Safarov
df1ab07ca4
FS-9924: Removed extra space in source files
2017-02-09 23:59:49 -05:00
Ken Rice
6e7d5d0897
update copyright header for 2014
2014-02-12 12:08:56 -06:00
Peter Olsson
084e245085
Lots of trivial tweaks to minimize compiler warnings, especially on 64-bit platform: Added missing type casts, changed types, added missing NULL checks.
2014-01-22 22:30:23 +01:00
Nathan Neulinger
32adc789f6
make noexpandtab explicit in all vim modelines other than xml files
2013-06-25 11:50:17 -05:00
Jeff Lenk
8b14f81343
strtoll correction for windows
2012-10-23 12:08:40 -05:00
Eliot Gable
d923f0f75c
oops
2012-10-23 14:00:52 +00:00
Eliot Gable
ce4fa8acfb
Added switch_atomic_t option for config parsing.
2012-10-23 13:39:31 +00:00
Ken Rice
c5554eb939
Copyright date update.
2012-04-18 11:52:02 -05:00
Jeff Lenk
e56cbeef41
fix trivial comiler warning for last commit
2011-04-28 14:39:24 -05:00
Mathieu Rene
0d5fcf65a0
xml_config: change min/max enforcements to >= instead of >
2011-02-06 01:28:51 -05:00
Brian West
3734f4cd44
bump copyright date and fix some email and typos from diego.
2011-01-05 10:09:04 -06:00
Anthony Minessale
886e1ddb4d
run indent on the whole tree and update copyright dates in prep for 1.0.5
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16579 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-06 03:38:24 +00:00
Anthony Minessale
df7637f687
change switch_strlen_zero to zstr
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15211 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-23 16:03:42 +00:00
Mathieu Rene
b610bf2f9f
Implement new config parser in mod_voicemail
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13879 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-20 03:37:15 +00:00
Mathieu Rene
ca5bc07f48
Implement new config parser in mod_voicemail
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13878 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-20 03:32:29 +00:00
Mathieu Rene
9482850a83
Fix up SWITCH_CONFIG_ITEM_STRING_STRDUP to please windows
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13829 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-18 06:01:45 +00:00
Mathieu Rene
98a7172281
xml_config: Fix issue where default NULL strings were ignored on reload
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13052 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-16 02:26:32 +00:00
Mathieu Rene
c3f5fe7ff4
Fix Solaris build
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12842 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-30 17:48:25 +00:00
Mathieu Rene
7e3b26eaae
tweak
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12591 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-13 15:13:18 +00:00
Mathieu Rene
f7cd36c0b0
avoid (null) confusion
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12499 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-07 06:50:10 +00:00
Michael Jerris
bed36985dd
tweak
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12498 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-07 06:45:14 +00:00
Mathieu Rene
b59ad5e456
Enhance generic configuration parser
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12493 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-07 02:11:16 +00:00
Mathieu Rene
d7cdbeca3a
generic parses fixes
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12474 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 21:39:21 +00:00
Mathieu Rene
0d34288f0c
oops[]
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12471 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 21:09:46 +00:00
Mathieu Rene
ff2cf9623e
fix gcc visibility
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12470 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 20:51:23 +00:00
Mathieu Rene
c0bc34ee7e
replace reloadable bool by a flags structure and add required flag
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12469 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 20:18:27 +00:00
Mathieu Rene
fdab1b11d1
Lets make the parser free its stuff on shutdown, and let the callbacks do something if required
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12467 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 16:57:26 +00:00
Mathieu Rene
d2a2350dae
refactor
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12463 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 16:16:20 +00:00
Mathieu Rene
b2d0d1689b
Integer (min,max) and string (regex) validation options added, mod_skel is my new playground
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12459 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 15:03:29 +00:00
Mathieu Rene
b313224f4b
last one
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12457 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 06:38:52 +00:00
Mathieu Rene
c4a27eadd8
I like casts
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12455 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 06:00:36 +00:00
Mathieu Rene
9849c80b1d
Shut up MikeJ's code analyzer
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12452 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 05:50:11 +00:00
Mathieu Rene
689f570f0c
final tweak?
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12451 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 05:47:43 +00:00
Mathieu Rene
35416bb9de
tweak
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12450 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 05:45:42 +00:00
Mathieu Rene
dbfb1cdb64
oops
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12449 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 05:41:40 +00:00
Mathieu Rene
6ed3089a48
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12447 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 05:32:50 +00:00
Mathieu Rene
e1a55739f0
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12442 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 04:30:15 +00:00
Mathieu Rene
18d45d6039
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12441 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 04:23:54 +00:00
Mathieu Rene
804f089398
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12440 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 04:22:09 +00:00
Mathieu Rene
c8c3201195
oops
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12435 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 03:30:48 +00:00
Mathieu Rene
10fb9485f5
Immediate Post-Commit Omission Finding Syndrome
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12434 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 03:24:29 +00:00
Brian West
a90e9f3fbe
me being all OCD
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12433 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 03:12:28 +00:00
Mathieu Rene
085bd00fa4
Generic config parser
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12432 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-05 03:09:31 +00:00