100+ results results for 'safe_free' (667 ms)
78 79 safe_free(carp_peers); 80 n_carp_peers = 0;winbind_struct_protocol.h https://github.com/theuni/XBMC-deps.git | C Header | 513 lines
13 14#ifndef SAFE_FREE 15#define SAFE_FREE(x) do { if(x) {free(x); x=NULL;} } while(0)zport.h http://mmo-resourse.googlecode.com/svn/ | C++ Header | 481 lines
69 70#ifndef SAFE_FREE 71 #undef SAFE_FREE 71 #undef SAFE_FREE 72 #define SAFE_FREE(x) try{ if( (x) != NULL ) { free(x); (x)=NULL; } } catch(...) { TRACE("SAFE_FREE error\n"); } 73#endif 80#define SAFE_CLOSEHANDLE(x) try{ if (x) { CloseHandle(x); (x) = NULL; } } catch(...) { TRACE("SAFE_CLOSEHANDLE error\n"); } 81#define SAFE_FREELIB(x) try{ if (x) { FreeLibrary(x); (x) = NULL; } } catch(...) { TRACE("SAFE_FREELIB error\n"); } 82net_printing.c git://pkgs.fedoraproject.org/samba | C | 377 lines
191 dump_form(ctx, (const char *)kbuf.dptr+strlen(FORMS_PREFIX), dbuf.dptr, dbuf.dsize); 192 SAFE_FREE(dbuf.dptr); 193 continue; 197 dump_driver(ctx, (const char *)kbuf.dptr+strlen(DRIVERS_PREFIX), dbuf.dptr, dbuf.dsize); 198 SAFE_FREE(dbuf.dptr); 199 continue; 203 dump_printer(ctx, (const char *)kbuf.dptr+strlen(PRINTERS_PREFIX), dbuf.dptr, dbuf.dsize); 204 SAFE_FREE(dbuf.dptr); 205 continue; 209 dump_sd(ctx, (const char *)kbuf.dptr+strlen(SECDESC_PREFIX), dbuf.dptr, dbuf.dsize); 210 SAFE_FREE(dbuf.dptr); 211 continue; 263 dbuf.dsize); 264 SAFE_FREE(dbuf.dptr); 265 continue;vfs_tru64acl.c https://gitlab.com/envieidoc/advancedtomato2 | C | 505 lines
182 if (!tru64_ace_to_smb_ace(entry, &result->acl[result->count])) { 183 SAFE_FREE(result); 184 goto fail; 191 if (result != NULL) { 192 SAFE_FREE(result); 193 }MmappedFile.cc https://github.com/dkurochkin/squid.git | C++ | 270 lines
64{ 65 safe_free(path_); 66 doClose();open.c https://gitlab.com/envieidoc/tomato | C | 482 lines
102 fail: 103 SAFE_FREE(newdb); 104 return ret; 327 if (tdb->flags & TDB_INTERNAL) 328 SAFE_FREE(tdb->map_ptr); 329 else 331 } 332 SAFE_FREE(tdb->name); 333 if (tdb->fd != -1) 335 TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_open_ex: failed to close tdb->fd on error!\n")); 336 SAFE_FREE(tdb); 337 errno = save_errno; 366 if (tdb->flags & TDB_INTERNAL) 367 SAFE_FREE(tdb->map_ptr); 368 elseCppVDSFormatVolume.cpp https://cfx.svn.codeplex.com/svn | C++ | 484 lines
27#define SAFE_RELEASE(x) if (x) { x->Release(); x = NULL; } 28#define SAFE_FREE(x) if (x) { CoTaskMemFree(x); } 29#define GUID_LEN 50casefiddle.c https://github.com/T-force/emacs.git | C | 445 lines
145 obj = make_multibyte_string ((char *) dst, size, o - dst); 146 SAFE_FREE (); 147 return obj;afs_settoken.c https://gitlab.com/envieidoc/tomato | C | 239 lines
225 226 SAFE_FREE(cell); 227 data_blob_free(&ticket);tcomp_message.c https://gitlab.com/iwan.aucamp/doubango | C | 390 lines
155 if(message && !message->isOK){ 156 TSK_OBJECT_SAFE_FREE(message); 157 } 369 if(message){ 370 TSK_OBJECT_SAFE_FREE(message->stateId); 371 TSK_OBJECT_SAFE_FREE(message->remaining_sigcomp_buffer); 371 TSK_OBJECT_SAFE_FREE(message->remaining_sigcomp_buffer); 372 TSK_OBJECT_SAFE_FREE(message->uploaded_UDVM_buffer); 373 TSK_OBJECT_SAFE_FREE(message->ret_feedback_buffer); 373 TSK_OBJECT_SAFE_FREE(message->ret_feedback_buffer); 374 TSK_OBJECT_SAFE_FREE(message->nack_info); 375 }locktest2.c https://github.com/theuni/XBMC-deps.git | C | 571 lines
83 ret = open(path, flags, 0666); 84 SAFE_FREE(path); 85 return ret;utils.c https://github.com/nexgenta/redbutton.git | C | 269 lines
166 * safe_realloc(NULL, n) == safe_malloc(n) 167 * safe_realloc(x, 0) == safe_free(x) and returns NULL 168 */ 176 { 177 safe_free(oldbuf); 178 return NULL; 207/* 208 * safe_free(NULL) is okay 209 */ 211void 212safe_free(void *buf) 213{ 218 _nallocs--; 219 fprintf(stderr, "safe_free: %d\n", _nallocs); 220#endifdprintf.c https://gitlab.com/envieidoc/tomato | C | 113 lines
58 if (!p2) { 59 SAFE_FREE(p); 60 return -1; 66 maxlen *= 2; 67 SAFE_FREE(p2); 68 goto again; 71 /* good, its converted OK */ 72 SAFE_FREE(p); 73 ret = fwrite(p2, 1, clen, f); 73 ret = fwrite(p2, 1, clen, f); 74 SAFE_FREE(p2); 75namequery_dc.c https://github.com/theuni/XBMC-deps.git | C | 249 lines
68 if (!ads) { 69 SAFE_FREE(sitename); 70 return False; 81 if (!ads->config.realm) { 82 SAFE_FREE(sitename); 83 ads_destroy(&ads); 91 if (stored_sitename_changed(realm, sitename)) { 92 SAFE_FREE(sitename); 93 sitename = sitename_fetch(realm); 127 sitename ? sitename : "")); 128 SAFE_FREE(sitename); 129 return False; 131 132 SAFE_FREE(sitename); 133c_path.h https://gitlab.com/rpdev/csync | C Header | 136 lines
127 * 128 * @return Returns a C_PATHINFO structure that should be freed using SAFE_FREE(). 129 */sysquotas.c https://gitlab.com/envieidoc/tomato | C | 542 lines
84 } else { 85 SAFE_FREE(*mntpath); 86 SAFE_FREE(*bdev); 86 SAFE_FREE(*bdev); 87 SAFE_FREE(*fs); 88 ret = -1; 134 } else { 135 SAFE_FREE(*mntpath); 136 SAFE_FREE(*bdev); 161 } else { 162 SAFE_FREE(*mntpath); 163 ret = -1; 454 455 SAFE_FREE(mntpath); 456 SAFE_FREE(bdev);task_utilities.c http://dotsx.googlecode.com/svn/trunk/ | C | 557 lines
197 */ 198 SAFE_FREE(task->trialPs); 199 task->trialPs_length = 0; 272 */ 273 SAFE_FREE(task->trialPs); 274 task->trialPs_length = 0; 296 297 SAFE_FREE(task->trialPs); 298 task->trialPs = SAFE_ZALLOC(_PRtrial, count_per_row); 320 321 SAFE_FREE(task->trialPs); 322 task->trialPs = finaltrialPs;traj.c http://idmclib.googlecode.com/svn/trunk/ | C | 160 lines
25 26#define SAFE_FREE(p) if(p!=NULL) free(p) 27 59 idmc_model_free(traj->model); 60 SAFE_FREE(traj->par); 61 SAFE_FREE(traj->var); 61 SAFE_FREE(traj->var); 62 SAFE_FREE(traj); 63} 139 gsl_odeiv_step_free(trajectory->step_function); 140 SAFE_FREE(trajectory->error); 141 SAFE_FREE(trajectory->var); 141 SAFE_FREE(trajectory->var); 142 SAFE_FREE(trajectory->par); 143 SAFE_FREE(trajectory);cliprint.c https://github.com/theuni/XBMC-deps.git | C | 260 lines
111 /* If any parameters or data were returned, free the storage. */ 112 SAFE_FREE(rparam); 113 SAFE_FREE(rdata); 150 151 SAFE_FREE(rparam); 152 SAFE_FREE(rdata);interface.c https://github.com/wimberosa/samba.git | C | 541 lines
108 if (!iface->name) { 109 SAFE_FREE(iface); 110 return;pidof.c https://gitlab.com/stoeckmann/procps.git | C | 386 lines
38 39#define safe_free(x) if (x) { free(x); x=NULL; } 40 162 match = !strcmp(pidof_root, root_link); 163 safe_free(root_link); 164 222 223 safe_free(exe_link); 224 326 opt_rootdir_check = 1; 327 safe_free(pidof_root); 328 pidof_root = pid_link(getpid(), "root"); 380 /* some cleaning */ 381 safe_free(procs); 382 safe_free(omitted_procs);nmbd_serverlistdb.c https://gitlab.com/miztake/samba | C | 417 lines
44 ZERO_STRUCTP(servrec); 45 SAFE_FREE(servrec); 46 } 85 ZERO_STRUCTP(servrec); 86 SAFE_FREE(servrec); 87 work->subnet->work_changed = True; 124 DEBUG(2,("strupper_m %s failed\n", servrec->serv.name)); 125 SAFE_FREE(servrec); 126 return NULL;mkbuildoptions.awk https://github.com/theuni/XBMC-deps.git | AWK | 274 lines
48 print " "; 49 print " SAFE_FREE(ptr);"; 50 print " return ret;";CCMotionStreak.cpp https://bitbucket.org/nesdavid/cocos2dx.git | C++ | 359 lines
58 CC_SAFE_RELEASE(_texture); 59 CC_SAFE_FREE(_pointState); 60 CC_SAFE_FREE(_pointVertexes); 60 CC_SAFE_FREE(_pointVertexes); 61 CC_SAFE_FREE(_vertices); 62 CC_SAFE_FREE(_colorPointer); 62 CC_SAFE_FREE(_colorPointer); 63 CC_SAFE_FREE(_texCoords); 64}variable.c https://bitbucket.org/killerpenguinassassins/open_distrib_devel.git | C | 324 lines
134 else if (!VarHead->next && !strcmp(VarHead->name, name)) { 135 safe_free(VarHead->name); 136 safe_free(VarHead->value); 144 145 safe_free(vp->name); 146 safe_free(vp->value); 147 *vp = *save; 148 safe_free(save); 149 break; 269 unsetenv(VarHead->name); 270 safe_free(VarHead->name); 271 safe_free(VarHead->value); 278 unsetenv(vp->name); 279 safe_free(vp->name); 280 safe_free(vp->value);util_abort_gnu.c https://bitbucket.org/terraai/resinsight.git | C | 324 lines
107 free( stdout_file_name ); 108 util_safe_free( line_string ); 109 } 202 203 util_safe_free( func_name ); 204 util_safe_free( file_name ); 204 util_safe_free( file_name ); 205 util_safe_free( padding ); 206 }CppVDSUninstallDisks.cpp https://cfx.svn.codeplex.com/svn | C++ | 400 lines
26#define SAFE_RELEASE(x) if (x) { x->Release(); x = NULL; } 27#define SAFE_FREE(x) if (x) { CoTaskMemFree(x); } 28 92 93 SAFE_FREE(diskprop.pwszName); 94 SAFE_FREE(diskprop.pwszDiskAddress); 94 SAFE_FREE(diskprop.pwszDiskAddress); 95 SAFE_FREE(diskprop.pwszFriendlyName); 96 SAFE_FREE(diskprop.pwszAdaptorName); 96 SAFE_FREE(diskprop.pwszAdaptorName); 97 SAFE_FREE(diskprop.pwszDevicePath); 98hmac_link.c https://bitbucket.org/__wp__/mb-linux-msli.git | C | 489 lines
126 sign_len = MD5_LEN; 127 SAFE_FREE(ctx); 128 } 193 194 SAFE_FREE(ctx); 195 if (memcmp(digest, signature, MD5_LEN) != 0) 368 key_len = b64_pton((char *)tmp, key, HMAC_LEN+1); /*%< see above */ 369 SAFE_FREE2(tmp, len + 2); 370 430 HMAC_Key *hkey = key; 431 SAFE_FREE(hkey); 432 return (NULL);libntlmssp.c https://github.com/squid-cache/squid2.git | C | 393 lines
110 /* allocate buffer for str + null termination */ 111 safe_free(target); 112 target = (char *) xmalloc(len);check_std_c_rbtree.c https://gitlab.com/rpdev/csync | C | 367 lines
62 freedata = (test_t *) data; 63 SAFE_FREE(freedata); 64} 171 testdata = c_rbtree_node_data(node); 172 SAFE_FREE(testdata); 173 rc = c_rbtree_node_delete(node);tsip_header_WWW_Authenticate.c https://gitlab.com/iwan.aucamp/doubango | C | 160 lines
102 103 TSK_OBJECT_SAFE_FREE(http_hdr); 104 } 143 144 TSK_OBJECT_SAFE_FREE(TSIP_HEADER_PARAMS(WWW_Authenticate)); 145 }DiskdFile.cc https://github.com/dkurochkin/squid.git | C++ | 427 lines
82 assert (inProgressIOs == 0); 83 safe_free (path_); 84}utils_password.c https://gitlab.com/nmccallu/cryptsetup | C | 294 lines
241out_err: 242 crypt_safe_free(pass_verify); 243 if (r) 243 if (r) 244 crypt_safe_free(pass); 245 return r;vfs_readahead.c https://gitlab.com/envieidoc/tomato | C | 188 lines
125{ 126 SAFE_FREE(*pptr); 127}util.c https://github.com/mzeena/FreeSWITCH-qmod.git | C | 175 lines
84 switch_event_create_json(&phrases_event, (char *) stream.data); 85 switch_safe_free(stream.data); 86 122 } 123 switch_safe_free(stream.data); 124 return status; 162 163 switch_safe_free(varname); 164 172 173 switch_safe_free(apicmd); 174}nsstest.c https://github.com/endisd/samba.git | C | 494 lines
56 total_errors++; 57 SAFE_FREE(s); 58 return NULL; 59 } 60 SAFE_FREE(s); 61 return res; 202 if (status == NSS_STATUS_NOTFOUND) { 203 SAFE_FREE(buf); 204 return NULL; 207 report_nss_error("getgrent", status); 208 SAFE_FREE(buf); 209 return NULL; 240 if (status == NSS_STATUS_NOTFOUND) { 241 SAFE_FREE(buf); 242 return NULL;vfs_posixacl.c https://gitlab.com/envieidoc/advancedtomato2 | C | 398 lines
237 if (!smb_ace_to_internal(e, &result->acl[result->count])) { 238 SAFE_FREE(result); 239 return NULL;c_string.c https://gitlab.com/rpdev/csync | C | 365 lines
125 if (ret == (size_t)-1) { 126 SAFE_FREE(out); 127 return NULL; 165 if (strlist->vector == NULL) { 166 SAFE_FREE(strlist); 167 return NULL; 221 for (i = 0; i < strlist->count; i++) { 222 SAFE_FREE(strlist->vector[i]); 223 } 223 } 224 SAFE_FREE(strlist->vector); 225 SAFE_FREE(strlist);outprob_init.c https://github.com/rti7743/rtilabs.git | C | 236 lines
107 wrk->compute_gaussset_init = gprune_safe_init; 108 wrk->compute_gaussset_free = gprune_safe_free; 109 break;mf_guids.h https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | C Header | 359 lines
30 * SAFE_RELEASE - releases com object and frees pointer 31 * SAFE_FREE - deletes variable and frees pointer 32 * myfopen - redirection on fsopen 127 128#ifndef SAFE_FREE 129#define SAFE_FREE(P) if (P) { free(P); (P) = NULL; }nmbd_responserecordsdb.c https://github.com/theuni/XBMC-deps.git | C | 243 lines
73 ZERO_STRUCTP(rrec->userdata); 74 SAFE_FREE(rrec->userdata); 75 } 82 ZERO_STRUCTP(rrec); 83 SAFE_FREE(rrec); 84 124 ZERO_STRUCTP(rrec); 125 SAFE_FREE(rrec); 126 return NULL; 133 ZERO_STRUCTP(rrec); 134 SAFE_FREE(rrec); 135 return NULL;CCPlatformMacros.h https://github.com/Macarse/cocos2d-x.git | C Header | 213 lines
131#define CC_SAFE_DELETE_ARRAY(p) if(p) { delete[] p; p = 0; } 132#define CC_SAFE_FREE(p) if(p) { free(p); p = 0; } 133#define CC_SAFE_RELEASE(p) if(p) { p->release(); }messages_local.c https://github.com/theuni/XBMC-deps.git | C | 462 lines
184 185 SAFE_FREE(data.dptr); 186pcap.c https://gitlab.com/envieidoc/tomato | C | 263 lines
97 98 SAFE_FREE(p->name); 99 SAFE_FREE(p->comment); 99 SAFE_FREE(p->comment); 100 SAFE_FREE(p); 101 } 162 163 for (; (pcap_line = fgets_slash(NULL, sizeof(pstring), pcap_file)) != NULL; safe_free(pcap_line)) { 164 pstring name, comment;nmbd_workgroupdb.c https://gitlab.com/miztake/samba | C | 327 lines
146 ZERO_STRUCTP(work); 147 SAFE_FREE(work); 148 }Gadgets.cc https://bitbucket.org/drainware/squid.git | C++ | 311 lines
278 aclDestroyAclList(&l->aclList); 279 safe_free(l->cfgline); 280 cbdataFree(l); 301 l_next = l->next; 302 safe_free(l); 303 }ec_curses_logging.c git://pkgs.fedoraproject.org/ettercap | C | 166 lines
79 /* make sure to free if already set */ 80 SAFE_FREE(logfile); 81 SAFE_CALLOC(logfile, FILE_LEN, sizeof(char)); 94 set_loglevel(LOG_PACKET, logfile); 95 SAFE_FREE(logfile); 96} 105 /* make sure to free if already set */ 106 SAFE_FREE(logfile); 107 SAFE_CALLOC(logfile, FILE_LEN, sizeof(char)); 120 set_loglevel(LOG_INFO, logfile); 121 SAFE_FREE(logfile); 122} 137 /* make sure to free if already set */ 138 SAFE_FREE(logfile); 139 SAFE_CALLOC(logfile, FILE_LEN, sizeof(char));cifs.upcall.c https://gitlab.com/envieidoc/advancedtomato2 | C | 392 lines
112 len -= 4; 113 SAFE_FREE(*hostname); 114 *hostname = SMB_XMALLOC_ARRAY(char, len); 286 rc = 1; 287 SAFE_FREE(buf); 288 goto out; 289 } 290 SAFE_FREE(buf); 291 337 rc = handle_krb5_mech(oid, princ, &secblob, &sess_key); 338 SAFE_FREE(princ); 339 break; 388 data_blob_free(&sess_key); 389 SAFE_FREE(hostname); 390 SAFE_FREE(keydata);UserRequest.cc git://pkgs.fedoraproject.org/squid | C++ | 346 lines
20 assert(RefCountCount()==0); 21 safe_free(server_blob); 22 safe_free(client_blob); 102 103 safe_free(client_blob); 104 helperStatefulSubmit(ntlmauthenticators, buf, Auth::Ntlm::UserRequest::HandleReply, 190 user()->credentials(Auth::Pending); 191 safe_free(client_blob); 192 client_blob=xstrdup(blob); 205 * some helper */ 206 safe_free(client_blob); 207 client_blob = xstrdup(blob); 251 lm_request->waiting = 0; 252 safe_free(lm_request->client_blob); 253filemap.c https://github.com/labx-technologies-llc/mb-linux-labx.git | C | 172 lines
152{ 153 safe_free(fm->file_map); 154 safe_free(fm);scanner.c https://bitbucket.org/mikedep333/rdssamba4.git | C | 514 lines
320 &rdata, 0, rdata_len); 321 SAFE_FREE(rdata); 322 SAFE_FREE(rparam);statuspage.c https://repo.or.cz/Samba/vfs_proxy.git | C | 454 lines
50 DLIST_REMOVE(pidmap, p); 51 SAFE_FREE(p->machine); 52 SAFE_FREE(p); 176 utf8_fname,tstring(talloc_tos(),e->time.tv_sec)); 177 SAFE_FREE(utf8_fname); 178}py_spoolss_printers.c https://gitlab.com/envieidoc/tomato | C | 464 lines
90 91 SAFE_FREE(server); 92csync_util.c https://gitlab.com/rpdev/csync | C | 349 lines
157 strerror_r(errno, errbuf, sizeof(errbuf)); 158 SAFE_FREE(new); 159 CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, 221 csync_vio_file_stat_destroy(vst); 222 SAFE_FREE(uri); 223 292 csync_vio_unlink(ctx, uri); 293 SAFE_FREE(uri); 294aimkstp_wrap.cpp https://github.com/macx0r/dias-desktop.git | C++ | 284 lines
89 if (data->argv[i] && data->argt[i] == 0x00) 90 strsafe_free ((string)data->argv[i]); 91 elseupload.cpp http://miranda.googlecode.com/svn/trunk/ | C++ | 104 lines
57 58 SAFE_FREE(&szValue); 59 if (!list[i].text) return def;samba_patterns.py https://gitlab.com/miztake/samba | Python | 234 lines
82 " \n" 83 " SAFE_FREE(ptr);\n" 84 " return ret;\n"UserRequest.cc https://github.com/dkurochkin/squid.git | C++ | 315 lines
31 32 safe_free(nonceb64); 33 safe_free(cnonce); 33 safe_free(cnonce); 34 safe_free(realm); 35 safe_free(pszPass); 35 safe_free(pszPass); 36 safe_free(algorithm); 37 safe_free(pszMethod); 37 safe_free(pszMethod); 38 safe_free(qop); 39 safe_free(uri); 39 safe_free(uri); 40 safe_free(response); 41pidof.c https://gitlab.com/tpetazzoni/procps | C | 378 lines
32#define grow_size(x) (x = x * 5 / 4 + 1024) 33#define safe_free(x) if (x) { free(x); x=NULL; } 34 156 match = !strcmp(pidof_root, root_link); 157 safe_free(root_link); 158 219 220 safe_free(exe_link); 221 372 /* some cleaning */ 373 safe_free(procs); 374 safe_free(omitted_procs); 374 safe_free(omitted_procs); 375 safe_free(pidof_root); 376SDCCutil.c https://sdcc.svn.sourceforge.net/svnroot/sdcc | C | 304 lines
196 strncpyz(pbuffer, poutcmd, len); 197 Safe_free(poutcmd); 198}AirTraffic-Symbols.h https://gitlab.com/edelmaks/iOS-iphoneheaders | C Header | 281 lines
89_kATLogFacilityWaker 90_safe_free 91_CFAbsoluteTimeGetCurrentfetchaddr.c https://github.com/tgray/lbdb.git | C | 226 lines
204 { 205 safe_free(&cur_hdr->value); 206 cur_hdr->value = safe_strdup(buff + cur_hdr->taglen);test_tpdu.h https://gitlab.com/iwan.aucamp/doubango | C Header | 250 lines
48 } 49 TSK_OBJECT_SAFE_FREE(buffer); 50 } 56 57 TSK_OBJECT_SAFE_FREE(submit); 58 submit = (tsms_tpdu_submit_t*)tsms_tpdu_message_deserialize_mo(buffer->data, buffer->size); 63 64 TSK_OBJECT_SAFE_FREE(submit); 65 TSK_OBJECT_SAFE_FREE(buffer); 85 } 86 TSK_OBJECT_SAFE_FREE(buffer); 87 } 92 93 TSK_OBJECT_SAFE_FREE(deliver); 94check.c https://bitbucket.org/a3217055/illumos-2.git | C | 225 lines
81 82 safe_free(B->l_raw_collate.sp); 83 copy_line_rec(A, B);tsip_header_Date.c https://gitlab.com/iwan.aucamp/doubango | C | 466 lines
387 TSK_DEBUG_ERROR("Failed to parse 'Date' header."); 388 TSK_OBJECT_SAFE_FREE(hdr_Date); 389 } 448 449 TSK_OBJECT_SAFE_FREE(TSIP_HEADER_PARAMS(Date)); 450 }freeswitch_lua.cpp https://github.com/ppanhoto/Freeswitch-mod_mp4.git | C++ | 381 lines
40 41 switch_safe_free(hangup_func_str); 42 switch_safe_free(hangup_func_arg); 42 switch_safe_free(hangup_func_arg); 43 switch_safe_free(cb_function); 44 switch_safe_free(cb_arg); 153 } 154 switch_safe_free(hangup_func_str); 155 195 196 switch_safe_free(hangup_func_str); 197 switch_safe_free(hangup_func_arg); 212 sanity_check_noreturn; 213 switch_safe_free(cb_function); 214 switch_safe_free(cb_arg);fam_02location.cpp http://miranda-dev.googlecode.com/svn/trunk/ | C++ | 307 lines
102 103 SAFE_FREE((void**)&pszStr); 104 utf8_decode(szStr, &szRes); 104 utf8_decode(szStr, &szRes); 105 SAFE_FREE((void**)&szStr); 106 221 222 SAFE_FREE((void**)&szMsg); 223 } 300 301 SAFE_FREE((void**)&szMsg); 302 }interface.c https://bitbucket.org/__wp__/mb-linux-msli.git | C | 363 lines
175 176 SAFE_FREE(probed_ifaces); 177 182 ZERO_STRUCTPN(iface); 183 SAFE_FREE(iface); 184 } 239 ZERO_STRUCTPN(iface); 240 SAFE_FREE(iface); 241 } 242 243 SAFE_FREE(probed_ifaces); 244}c.vim https://github.com/dumuzid/exVim.git | Vim Script | 124 lines
22syn keyword cStatement ex_free ex_free_use ex_free_nomanage 23syn keyword cStatement ex_safe_free ex_safe_free_use ex_safe_free_nomanage 24syn keyword cStatement ex_stack_mallocaccess.c https://gitlab.com/math4youbyusgroupillinois/samba.git | C | 343 lines
49 if (!interpret_string_addr(&ss_tok, tok_copy, 0)) { 50 SAFE_FREE(tok_copy); 51 return false; 53 54 SAFE_FREE(tok_copy); 55 143 144 SAFE_FREE(hostname); 145 339 340 SAFE_FREE(nc_cname); 341 SAFE_FREE(nc_caddr);publish.c https://gitlab.com/iwan.aucamp/doubango | C | 117 lines
106 TSIP_ACTION_SET_NULL()); 107 TSK_OBJECT_SAFE_FREE(action_config); 108 break;mod_spidermonkey_odbc.c https://github.com/ppanhoto/Freeswitch-mod_mp4.git | C | 566 lines
76 } 77 switch_safe_free(new_obj); 78 } 99 } 100 switch_safe_free(obj->colbuf); 101 switch_safe_free(obj->code); 101 switch_safe_free(obj->code); 102 switch_safe_free(obj); 103} 422 switch_snprintf((char *) odbc_obj->code, odbc_obj->codelen, "~_oDbC_dB_RoW_DaTa_[\"%s\"] = \"%s\"", name, data); 423 switch_safe_free(esc); 424kerberos_util.c https://bitbucket.org/mikedep333/rdssamba4.git | C | 107 lines
52 53 SAFE_FREE(principal); 54 return status; 90 if (!ads->auth.password) { 91 SAFE_FREE(s); 92 return KRB5_LIBOS_CANTREADPWD; 102 } 103 SAFE_FREE(s); 104 return ret;printer_list.c https://gitlab.com/miztake/samba | C | 471 lines
141done: 142 SAFE_FREE(nstr); 143 SAFE_FREE(cstr); 143 SAFE_FREE(cstr); 144 SAFE_FREE(lstr); 145 TALLOC_FREE(key); 372 373 SAFE_FREE(name); 374 SAFE_FREE(comment); 374 SAFE_FREE(comment); 375 SAFE_FREE(location); 376 447 448 SAFE_FREE(name); 449 SAFE_FREE(comment);DecUT_ErrorConcealment.cpp https://gitlab.com/generic-library/openh264 | C++ | 294 lines
28 if (pECCtx->pCtx != NULL) { 29 WELS_SAFE_FREE (pECCtx->pCtx->pSps, "pECCtx->pCtx->pSps"); 30 WELS_SAFE_FREE (pECCtx->pCtx, "pECCtx->pCtx"); 32 33 WELS_SAFE_FREE (pECCtx->pMbCorrectlyDecodedFlag, "pECCtx->pMbCorrectlyDecodedFlag"); 34 WELS_SAFE_FREE (pECCtx->sSrcPic.pData[0], "pECCtx->sSrcPic.pData"); 34 WELS_SAFE_FREE (pECCtx->sSrcPic.pData[0], "pECCtx->sSrcPic.pData"); 35 WELS_SAFE_FREE (pECCtx->sAncPic.pData[0], "pECCtx->sAncPic.pData"); 36 WELS_SAFE_FREE (pECCtx->sWelsPic.pData[0], "pECCtx->sWelsPic.pData"); 37 38 WELS_SAFE_FREE (pECCtx, "pECCtx"); 39 }nmbd_serverlistdb.c https://repo.or.cz/Samba/ita.git | C | 397 lines
42 ZERO_STRUCTP(servrec); 43 SAFE_FREE(servrec); 44 } 83 ZERO_STRUCTP(servrec); 84 SAFE_FREE(servrec); 85 work->subnet->work_changed = True;DiskThreadsDiskFile.cc https://github.com/dkurochkin/squid.git | C++ | 386 lines
78{ 79 safe_free (path_); 80 doClose();streams.c https://github.com/richlowe/illumos-gate.git | C | 592 lines
260 STDIO_VBUF_SIZE) != 0) { 261 safe_free(str->s_type.BF.s_vbuf); 262 str->s_type.BF.s_vbuf = NULL;memory_policy.hpp https://github.com/bredelings/BAli-Phy.git | C++ Header | 142 lines
117#if IMMER_NO_THREAD_SAFETY 118using default_heap_policy = unsafe_free_list_heap_policy<cpp_heap>; 119#elsesystem_smbd.c https://github.com/theuni/XBMC-deps.git | C | 198 lines
65 if (ngrp_saved == -1) { 66 SAFE_FREE(gids_saved); 67 /* very strange! */ 72 DEBUG(0, ("getgrouplist_internals: initgroups() failed!\n")); 73 SAFE_FREE(gids_saved); 74 return -1; 84 if (num_gids == -1) { 85 SAFE_FREE(gids_saved); 86 /* very strange! */ 95 if (ret < 0) { 96 SAFE_FREE(gids_saved); 97 /* very strange! */ 171 "group list\n")); 172 SAFE_FREE(temp_groups); 173 return False;mod_dialplan_xml.c https://github.com/mzeena/FreeSWITCH-qmod.git | C | 430 lines
105 106 switch_safe_free(field_expanded); 107 switch_safe_free(expression_expanded); 281 } 282 switch_safe_free(substituted); 283 } 284 } 285 switch_regex_safe_free(re); 286 293 done: 294 switch_regex_safe_free(re); 295 switch_safe_free(field_expanded); 295 switch_safe_free(field_expanded); 296 switch_safe_free(expression_expanded); 297 return proceed;memcache.c https://github.com/theuni/XBMC-deps.git | C | 436 lines
65 next = e->next; 66 SAFE_FREE(e); 67 } 220 221 SAFE_FREE(e); 222}ralloc.c https://github.com/G4G/glsl-optimizer.git | C | 458 lines
70static void unlink_block(ralloc_header *info); 71static void unsafe_free(ralloc_header *info); 72 204 unlink_block(info); 205 unsafe_free(info); 206} 227static void 228unsafe_free(ralloc_header *info) 229{ 234 info->child = temp->next; 235 unsafe_free(temp); 236 }profiles.c https://gitlab.com/envieidoc/tomato | C | 286 lines
52 va_end(args); 53 SAFE_FREE(var); 54}charcnv.c https://gitlab.com/miztake/samba | C | 535 lines
69 } 70 SAFE_FREE(tmpbuf); 71 return 0; 81 ret = convert_string(CH_UNIX, CH_DOS, src, src_len, dest, dest_len, &size); 82 SAFE_FREE(tmpbuf); 83 if (ret == false) {wins_srv.c https://gitlab.com/miztake/samba | C | 409 lines
88done: 89 SAFE_FREE(wins_ip_addr); 90 SAFE_FREE(src_ip_addr); 106 result = gencache_get(keystr, NULL, NULL, NULL); 107 SAFE_FREE(keystr); 108 123 gencache_del(keystr); 124 SAFE_FREE(keystr); 125 143 144 SAFE_FREE(keystr); 145statuspage.c https://gitlab.com/envieidoc/advancedtomato2 | C | 470 lines
49 DLIST_REMOVE(pidmap, p); 50 SAFE_FREE(p->machine); 51 SAFE_FREE(p); 165 utf8_fname,tstring(e->time.tv_sec)); 166 SAFE_FREE(utf8_fname); 167}nmblookup.c https://gitlab.com/envieidoc/advancedtomato2 | C | 298 lines
123 d_printf("\n"); 124 SAFE_FREE(status); 125 } else { 179 180 safe_free(ip_list); 181resolvconf.c https://gitlab.com/miztake/samba | C | 123 lines
91 92 SAFE_FREE(line); 93util.h https://github.com/liaochen/igame.git | C Header | 241 lines
84 * strings str1 and str2. Memory for the new string is obtained with 85 * safe_malloc() and can be freed with safe_free(). 86 * 95 * Memory for the string is obtained with safe_malloc() and can be freed 96 * with safe_free(). 97 */spline.c https://gitlab.com/marcelosabino/gimp | C | 233 lines
152 if (SPLINE_LIST_DATA (*spline_list) != NULL) 153 safe_free ((address *) &(SPLINE_LIST_DATA (*spline_list))); 154} 219 if (SPLINE_LIST_ARRAY_DATA (*spline_list_array) != NULL) 220 safe_free ((address *) &(SPLINE_LIST_ARRAY_DATA (*spline_list_array))); 221}cpp_svcs.cpp http://miranda-dev.googlecode.com/svn/trunk/ | C++ | 346 lines
53 54 SAFE_FREE(ptr->tmp); 55 if(ptr->features & FEATURES_BASE64) { 133 free(ciphered); 134 SAFE_FREE(ptr->tmp); 135 151 free(ciphered); 152 SAFE_FREE(ptr->tmp); 153 return NULL; 270 } 271 SAFE_FREE(ptr->tmp); 272 ptr->tmp = szNewMsg; 300 } 301 SAFE_FREE(ptr->tmp); 302 ptr->tmp = szNewMsg;md5.patch https://github.com/energy6/xbmc.git | Patch | 72 lines
22 if (ctx == NULL) { 23 SAFE_FREE(h); 24 return SSH_ERROR;defs.ns.h https://github.com/restorer/zemu.git | C Header | 95 lines
88void safe_realloc(void** ptr, size_t size); 89void safe_free(void* ptr); 90char* alloc_n_strcpy(const char* str);idmap_cache.c https://github.com/theuni/XBMC-deps.git | C | 260 lines
54 ret = (*endptr == '\0'); 55 SAFE_FREE(value); 56 if (ret) { 92 } 93 SAFE_FREE(value); 94 if (ret) { 174 ret = (*endptr == '\0'); 175 SAFE_FREE(value); 176 if (ret) { 212 } 213 SAFE_FREE(value); 214 if (ret) {peer_sourcehash.cc https://github.com/dkurochkin/squid.git | C++ | 233 lines
72 73 safe_free(sourcehash_peers); 74 n_sourcehash_peers = 0;readline.c https://github.com/theuni/XBMC-deps.git | C | 201 lines
99 if (ret == 0) { 100 SAFE_FREE(line); 101 } 107 } 108 SAFE_FREE(line); 109 return NULL;xgselect.c https://github.com/jwiegley/emacs-release.git | C | 164 lines
93 94 SAFE_FREE (); 95gc_hal_mem.h https://gitlab.com/gioge/linux-imx_3.10.53_1.1.0_ga | C Header | 530 lines
336 gcmHEADER_ARG("MemPool=0x%x Pointer=0x%x", MemPool, Pointer); \ 337 status = gcmOS_SAFE_FREE(MemPool, Pointer); \ 338 gcmFOOTER(); \ 383 gcmHEADER_ARG("MemPool=0x%x Pointer=0x%x", MemPool, Pointer); \ 384 status = gcmOS_SAFE_FREE(MemPool, Pointer); \ 385 gcmFOOTER(); \ 430 gcmHEADER_ARG("MemPool=0x%x Pointer=0x%x", MemPool, Pointer); \ 431 status = gcmOS_SAFE_FREE(MemPool, Pointer); \ 432 gcmFOOTER(); \