]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_python] scan-build: Fix "Argument with 'nonnull' attribute passed null" 418/head
authorAndrey Volk <andywolk@gmail.com>
Tue, 25 Feb 2020 20:15:28 +0000 (00:15 +0400)
committerAndrey Volk <andywolk@gmail.com>
Tue, 25 Feb 2020 20:15:28 +0000 (00:15 +0400)
src/mod/languages/mod_python/mod_python.c

index 17da5f263ff0266aea075254be31595570ab1e0f..c9ae2b895d40014b3969ba1e14f46bc6161665e3 100644 (file)
@@ -90,6 +90,7 @@ static void print_python_error(const char * script)
 
        if (buffer == NULL ) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Not enough Memory to create the error buffer");
+               return;
        }
 
        /* just for security that we will always have a string terminater */