- Timestamp:
- Dec 25, 2013, 11:35:05 AM (11 years ago)
- Parents:
- d779a1a (diff), 7dcef03 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
filter.c
rc068c03 r7dcef03 18 18 owl_filter *f; 19 19 20 f = g_ new(owl_filter, 1);20 f = g_slice_new(owl_filter); 21 21 22 22 f->name=g_strdup(name); … … 69 69 if(!argc) return NULL; 70 70 71 fe = g_ new(owl_filterelement, 1);71 fe = g_slice_new(owl_filterelement); 72 72 owl_filterelement_create(fe); 73 73 … … 114 114 err: 115 115 owl_filterelement_cleanup(fe); 116 g_ free(fe);116 g_slice_free(owl_filterelement, fe); 117 117 return NULL; 118 118 } … … 132 132 op2 = owl_filter_parse_primitive_expression(argc-i-1, argv+i+1, &skip); 133 133 if(!op2) goto err; 134 tmp = g_ new(owl_filterelement, 1);134 tmp = g_slice_new(owl_filterelement); 135 135 if(!strcasecmp(argv[i], "and")) { 136 136 owl_filterelement_create_and(tmp, op1, op2); … … 152 152 if(op1) { 153 153 owl_filterelement_cleanup(op1); 154 g_ free(op1);154 g_slice_free(owl_filterelement, op1); 155 155 } 156 156 return NULL; … … 262 262 if (f->root) { 263 263 owl_filterelement_cleanup(f->root); 264 g_ free(f->root);264 g_slice_free(owl_filterelement, f->root); 265 265 } 266 266 if (f->name) 267 267 g_free(f->name); 268 g_ free(f);269 } 268 g_slice_free(owl_filter, f); 269 }
Note: See TracChangeset
for help on using the changeset viewer.