From 9f12ca0ac86a7d29bdc6518a39b69cd03af41406 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 30 Jul 2007 10:47:14 +0000 Subject: fixed a mem leak in OMSRdestruct - freeing the object itself was forgotten - thanks to varmojfekoj for the patch --- ChangeLog | 2 ++ objomsr.c | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6e0c7a03..de853a66 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ Version 1.17.6 (rgerhards), 2007-07-3? - fixed bug in OMSRcreate() - always returned SR_RET_OK - fixed a bug that caused ommysql to always complain about missing templates +- fixed a mem leak in OMSRdestruct - freeing the object itself was + forgotten - thanks to varmojfekoj for the patch --------------------------------------------------------------------------- Version 1.17.5 (rgerhards), 2007-07-30 - continued to work on modularization diff --git a/objomsr.c b/objomsr.c index 3d3264b5..cb504cd0 100644 --- a/objomsr.c +++ b/objomsr.c @@ -50,6 +50,7 @@ rsRetVal OMSRdestruct(omodStringRequest_t *pThis) } if(pThis->piTplOpts != NULL) free(pThis->piTplOpts); + free(pThis); return RS_RET_OK; } -- cgit v1.2.3