- Timestamp:
- Nov 7, 2013 8:20:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/src/pjlib-util/resolver.c
r4553 r4649 1198 1198 cache = (struct cached_res *) pj_hash_get(resolver->hrescache, key, 1199 1199 sizeof(*key), &hval); 1200 /* Remove the entry before releasing its pool (see ticket #1710) */ 1201 pj_hash_set(NULL, resolver->hrescache, key, sizeof(*key), hval, NULL); 1202 1203 /* Free the entry */ 1200 1204 if (cache && --cache->ref_cnt <= 0) 1201 1205 free_entry(resolver, cache); 1202 pj_hash_set(NULL, resolver->hrescache, key, sizeof(*key), hval, NULL);1203 1206 } 1204 1207 … … 1234 1237 cache = (struct cached_res *) pj_hash_get(resolver->hrescache, key, 1235 1238 sizeof(*key), &hval); 1239 /* Remove the entry before releasing its pool (see ticket #1710) */ 1240 pj_hash_set(NULL, resolver->hrescache, key, sizeof(*key), hval, NULL); 1241 1242 /* Free the entry */ 1236 1243 if (cache && --cache->ref_cnt <= 0) 1237 1244 free_entry(resolver, cache); 1238 pj_hash_set(NULL, resolver->hrescache, key, sizeof(*key), hval, NULL);1239 1245 return; 1240 1246 } … … 1253 1259 cache = alloc_entry(resolver); 1254 1260 } else { 1261 /* Remove the entry before resetting its pool (see ticket #1710) */ 1262 pj_hash_set(NULL, resolver->hrescache, key, sizeof(*key), hval, NULL); 1263 1255 1264 /* Reset cache to avoid bloated cache pool */ 1256 1265 reset_entry(&cache);
Note: See TracChangeset
for help on using the changeset viewer.