MCPcopy Create free account
hub / github.com/apache/madlib / freeSparseDataAndData

Function freeSparseDataAndData

methods/svec/src/pg_gp/SparseData.c:1272–1276  ·  view source on GitHub ↗

* Frees up the memory occupied by sdata, including the data elements of vals and index. */

Source from the content-addressed store, hash-verified

1270 * Frees up the memory occupied by sdata, including the data elements of vals and index.
1271 */
1272void freeSparseDataAndData(SparseData sdata) {
1273 pfree(sdata->vals->data);
1274 pfree(sdata->index->data);
1275 freeSparseData(sdata);
1276}
1277
1278/**
1279 * @param sinfo The StringInfo structure to be copied

Callers 4

makeEmptySvecFunction · 0.85
float8arr_dotFunction · 0.85
svec_dot_float8arrFunction · 0.85
float8arr_dot_svecFunction · 0.85

Calls 1

freeSparseDataFunction · 0.85

Tested by

no test coverage detected