Changeset: 9602cca443c0 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9602cca443c0
Modified Files:
        monetdb5/mal/mal_debugger.c
        sql/backends/monet5/UDF/pyapi/conversion.c
Branch: default
Log Message:

Coverity fixes


diffs (27 lines):

diff --git a/monetdb5/mal/mal_debugger.c b/monetdb5/mal/mal_debugger.c
--- a/monetdb5/mal/mal_debugger.c
+++ b/monetdb5/mal/mal_debugger.c
@@ -690,8 +690,10 @@ retryRead:
                                                for(i=0; i< fs->def->stop; i++)
                                                        
fs->def->stmt[i]->typechk = TYPE_UNKNOWN;
                                                msg = 
chkProgram(cntxt->usermodule, fs->def);
-                                               if( msg != MAL_SUCCEED)
-                                                       mnstr_printf(out, 
"#<modnme>.<fcnnme> contains errors\n");
+                                               if( msg != MAL_SUCCEED){
+                                                       mnstr_printf(out, 
"#<modnme>.<fcnnme> contains errors: %s\n", msg);
+                                                       freeException(msg);
+                                               }
                                        }
                                } else
                                        mnstr_printf(out, "#<modnme>.<fcnnme> 
expected\n");
diff --git a/sql/backends/monet5/UDF/pyapi/conversion.c 
b/sql/backends/monet5/UDF/pyapi/conversion.c
--- a/sql/backends/monet5/UDF/pyapi/conversion.c
+++ b/sql/backends/monet5/UDF/pyapi/conversion.c
@@ -195,6 +195,7 @@ PyObject *PyArrayObject_FromBAT(PyInput 
                        msg = ConvertFromSQLType(inp->bat, inp->sql_subtype, 
&ret_bat,
                                                                         
&inp->bat_type);
                        if (msg != MAL_SUCCEED) {
+                               freeException(msg);
                                msg = createException(MAL, "pyapi.eval",
                                                                          
SQLSTATE(PY000) "Failed to convert BAT.");
                                goto wrapup;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to