Plug a memory leak
Plug a memory leak

Error: RESOURCE_LEAK (CWE-772): [#def15]
openscap-1.3.0_alpha1/src/OVAL/oval_probe_ext.c:134: alloc_fn: Storage
is returned from allocation function "malloc".
openscap-1.3.0_alpha1/src/OVAL/oval_probe_ext.c:134: var_assign:
Assigning: "pd" = storage returned from "malloc(16UL)".
openscap-1.3.0_alpha1/src/OVAL/oval_probe_ext.c:142: leaked_storage:
Variable "pd" going out of scope leaks the storage it points to.
  140|
  141|   	if (tbl->memb == NULL) {
  142|-> 		return -1;
  143|   	}
  144|

jan-cerny/openscap,OpenSCAP/openscap,jan-cerny/openscap,OpenSCAP/openscap,jan-cerny/openscap,OpenSCAP/openscap,OpenSCAP/openscap,OpenSCAP/openscap,redhatrises/openscap,redhatrises/openscap,jan-cerny/openscap,redhatrises/openscap,redhatrises/openscap,jan-cerny/openscap,redhatrises/openscap,redhatrises/openscap,OpenSCAP/openscap,jan-cerny/openscap