[Asterisk-code-review] app voicemail: always copy dynamic struct to avoid race cond... (asterisk[13])

Kevin Harwell asteriskteam at digium.com
Thu Mar 17 15:12:27 CDT 2016


Kevin Harwell has posted comments on this change.

Change subject: app_voicemail: always copy dynamic struct to avoid race condition
......................................................................


Patch Set 3: Code-Review-1

Perusing the code and looking at a few of the places that call find_user there are some nominal and many off nominal paths that don't call free_user. This wasn't a huge problem before due to the fact many of the calls don't use an allocated structure, but now memory is always being allocated for the specified attributes. Thus it now appears there is a potential for memory to be leaked in a number of areas/paths.

-- 
To view, visit https://gerrit.asterisk.org/2433
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I3a0643813116da84e2617291903d0d489b7425fb
Gerrit-PatchSet: 3
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Andrew Nagy <andrew.nagy at the159.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-HasComments: No



More information about the asterisk-code-review mailing list