mailr19593 - /trunk/target_functions/relax_fit.c


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on April 27, 2013 - 21:46:
Author: bugman
Date: Sat Apr 27 21:46:04 2013
New Revision: 19593

URL: http://svn.gna.org/viewcvs/relax?rev=19593&view=rev
Log:
Restored the Py_INCREF() function call in the relaxation curve-fitting C 
module.

This was deleted at r12632 along with Py_XDECREF() and Py_DECREF() calls.  
The absence of a
Py_INCREF() function call causes the module to crash the Python interpreter 
under certain
conditions.  The problem was found in the relax_disp branch.


Modified:
    trunk/target_functions/relax_fit.c

Modified: trunk/target_functions/relax_fit.c
URL: 
http://svn.gna.org/viewcvs/relax/trunk/target_functions/relax_fit.c?rev=19593&r1=19592&r2=19593&view=diff
==============================================================================
--- trunk/target_functions/relax_fit.c (original)
+++ trunk/target_functions/relax_fit.c Sat Apr 27 21:46:04 2013
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006-2012 Edward d'Auvergne
+ * Copyright (C) 2006-2013 Edward d'Auvergne
  *
  * This file is part of the program relax (http://www.nmr-relax.com).
  *
@@ -76,6 +76,7 @@
     }
 
     /* Return nothing */
+    Py_INCREF(Py_None);
     return Py_None;
 }
 




Related Messages


Powered by MHonArc, Updated Sun Apr 28 11:40:02 2013