[Groonga-commit] pgroonga/pgroonga at f73d11e [master] Fix a memory leak on pgroonga.score()

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Oct 21 19:37:54 JST 2016


Kouhei Sutou	2016-10-21 19:37:54 +0900 (Fri, 21 Oct 2016)

  New Revision: f73d11eb769bdb6132580a6934387235e817e433
  https://github.com/pgroonga/pgroonga/commit/f73d11eb769bdb6132580a6934387235e817e433

  Message:
    Fix a memory leak on pgroonga.score()
    
    [groonga-dev,04154]
    
    Reported by Takahashi. Thanks!!!

  Modified files:
    src/pgroonga.c

  Modified: src/pgroonga.c (+2 -0)
===================================================================
--- src/pgroonga.c    2016-10-09 22:35:35 +0900 (e82b520)
+++ src/pgroonga.c    2016-10-21 19:37:54 +0900 (a504432)
@@ -1041,6 +1041,8 @@ PGrnCollectScoreScanOpaque(Relation table, HeapTuple tuple, PGrnScanOpaque so)
 		grn_obj_unlink(ctx, tableCursor);
 	}
 
+	grn_obj_close(ctx, records);
+
 	return score;
 }
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index