library/src/exploitation/WebExploitation/SQLErrCodes/BP-WebExploitMsqlErrCodes.cc
// Destroys a set of MSQL error code allocations
Destroys a set of MSQL error code allocations
Destroys a set of MSQL error code allocations
size_t BP_DestroyMSQLErrCodes(BP_MSQL_ERR_CODES *codes){
	if(!codes)
		return ERR_FAILURE;
	size_t x = 0;
	for(x = 0; x < BP_MsqlErrCount(); x++){
		bpfree(codes[x].description);
		bpfree(codes[x].errNum);
		bpfree(codes[x].logged);
		bpfree(codes[x].severity);
	}
	bpfree(codes);
	return ERR_SUCCESS;
}
size_t BP_DestroyMSQLErrCodes ( BP_MSQL_ERR_CODES * codes ) { if ( ! codes ) return ERR_FAILURE ; size_t x = 0 ; for ( x = 0 ; x < BP_MsqlErrCount ( ) ; x ++ ) { bpfree ( codes [ x ] . description ) ; bpfree ( codes [ x ] . errNum ) ; bpfree ( codes [ x ] . logged ) ; bpfree ( codes [ x ] . severity ) ; } bpfree ( codes ) ; return ERR_SUCCESS ; }
Destroys a set of MSQL error code allocations
Destroys a set of MSQL error code allocations
// NO MORE FREE CODE, NO MORE, NONE lol (memory 4free tho | bovice) // return success