[Groonga-commit] groonga/groonga [master] Fix returning a wrong error code, which causes memory leaks.

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 5日 (木) 10:22:49 JST


Daijiro MORI	2012-07-05 10:22:49 +0900 (Thu, 05 Jul 2012)

  New Revision: 4fe66140322dbaec44d9d6b46b26846155d2dd32
  https://github.com/groonga/groonga/commit/4fe66140322dbaec44d9d6b46b26846155d2dd32

  Log:
    Fix returning a wrong error code, which causes memory leaks.

  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -1)
===================================================================
--- lib/db.c    2012-07-03 18:40:38 +0900 (15520da)
+++ lib/db.c    2012-07-05 10:22:49 +0900 (0cdff21)
@@ -3864,7 +3864,7 @@ grn_vector_decode(grn_ctx *ctx, grn_obj *v, const char *data, uint32_t data_size
     }
   }
   v->u.v.n_sections += n;
-  return ctx->rc;
+  return GRN_SUCCESS;
 }
 
 grn_rc
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下载 



Groonga-commit メーリングリストの案内
Back to archive index