
cherokee at cherokee-project
May 23, 2011, 4:19 AM
Post #1 of 1
(66 views)
Permalink
|
|
[6705] cherokee/trunk/cherokee/plugin_loader.c: "Pointer 'entry' returned from call to function 'malloc' at line 374
|
|
Revision: 6705 http://svn.cherokee-project.com/changeset/6705 Author: alo Date: 2011-05-23 13:19:18 +0200 (Mon, 23 May 2011) Log Message: ----------- "Pointer 'entry' returned from call to function 'malloc' at line 374 may be NULL and will be dereferenced at line 375." Klocwork Issue 92 Modified Paths: -------------- cherokee/trunk/cherokee/plugin_loader.c Modified: cherokee/trunk/cherokee/plugin_loader.c =================================================================== --- cherokee/trunk/cherokee/plugin_loader.c 2011-05-23 11:16:03 UTC (rev 6704) +++ cherokee/trunk/cherokee/plugin_loader.c 2011-05-23 11:19:18 UTC (rev 6705) @@ -377,6 +377,10 @@ /* Add new entry */ entry = malloc (sizeof(entry_t)); + if (entry == NULL) { + return ret_nomem; + } + entry->dlopen_ref = dl_handle; entry->info = info; entry->built_in = false;
|