celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bpe...@apache.org
Subject svn commit: r1645046 - in /celix/trunk/framework/private/src: filter.c service_tracker_customizer.c
Date Fri, 12 Dec 2014 19:38:01 GMT
Author: bpetri
Date: Fri Dec 12 19:38:01 2014
New Revision: 1645046

URL: http://svn.apache.org/r1645046
Log:
fixed minor leaks

Modified:
    celix/trunk/framework/private/src/filter.c
    celix/trunk/framework/private/src/service_tracker_customizer.c

Modified: celix/trunk/framework/private/src/filter.c
URL: http://svn.apache.org/viewvc/celix/trunk/framework/private/src/filter.c?rev=1645046&r1=1645045&r2=1645046&view=diff
==============================================================================
--- celix/trunk/framework/private/src/filter.c (original)
+++ celix/trunk/framework/private/src/filter.c Fri Dec 12 19:38:01 2014
@@ -80,6 +80,9 @@ void filter_destroy(filter_pt filter) {
 			}
 			arrayList_destroy(filter->value);
 			filter->value = NULL;
+		} else  if (filter->operand == NOT) {
+			filter_destroy(filter->value);
+			filter->value = NULL;
 		} else {
 			free(filter->value);
 			filter->value = NULL;

Modified: celix/trunk/framework/private/src/service_tracker_customizer.c
URL: http://svn.apache.org/viewvc/celix/trunk/framework/private/src/service_tracker_customizer.c?rev=1645046&r1=1645045&r2=1645046&view=diff
==============================================================================
--- celix/trunk/framework/private/src/service_tracker_customizer.c (original)
+++ celix/trunk/framework/private/src/service_tracker_customizer.c Fri Dec 12 19:38:01 2014
@@ -61,6 +61,8 @@ celix_status_t serviceTrackerCustomizer_
 	customizer->modifiedService = NULL;
 	customizer->removedService = NULL;
 
+	free(customizer);
+
 	return CELIX_SUCCESS;
 }
 



Mime
View raw message