[srm-cvs] CVS Update: - Fixed memleak in srm function get_module_info

From: <d.rethans[@]jdimedia.nl>
Date: Sat Feb 22 2003 - 20:34:52 CET

Date: Sat Feb 22 20:34:51 CET 2003
User: Derick Rethans
Directory: srm/modules/standard

Log Message:
 [0.25]
 - Fixed memleak in srm function get_module_info
 
Modified files:
           srm/modules/standard/standard.c (version: 1.38)

[FILE: /srm/modules/standard/standard.c]

--- srm/modules/standard/standard.c:1.37 Fri Feb 21 18:33:11 2003 GMT
+++ srm/modules/standard/standard.c Sat Feb 22 18:34:51 2003 GMT
@@ -1,4 +1,4 @@
-/* $Id: cvstemp,v 1.37 2003/02/21 19:33:11 derick Exp $ */
+/* $Id: cvstemp,v 1.38 2003/02/22 19:34:51 derick Exp $ */
 
 /* The contents of this file are subject to the Vulcan Logic Public
  * License Version 1.1 (the "License"); you may not use this file
@@ -227,10 +227,10 @@
         SRM_ARGC_CHECK (1);
         SRM_GET_ARG (0, (arg1), STR);
 
- /* Initializing return list */
- list = srm_llist_alloc (SRM_LLIST_VALUE_FREE);
-
         if (srm_hash_find (module_hash, SRMVALP_STR(arg1), arg1->value_length, (void *) &module)) {
+
+ /* Initializing return list */
+ list = srm_llist_alloc (SRM_LLIST_VALUE_FREE);
 
                  info[0] = module->info.name;
                 info[1] = module->info.version_string;
Received on Sat Feb 22 20:34:53 2003

This archive was generated by hypermail 2.1.8 : Tue Jan 06 2009 - 07:00:04 CET