Patch from Scott McKellar to plug a memory leak in the mathbench test application
[OpenSRF.git] / src / c-apps / osrf_math.c
index f2e614d..7818451 100644 (file)
@@ -100,6 +100,10 @@ int osrfMathRun( osrfMethodContext* ctx ) {
 
                        osrfAppSessionFree(ses);
                }
+               else {
+                       if(a) free(a);
+                       if(b) free(b);
+               }
        }
 
        return -1;