ITS#8770 Fix dsaschema memory leaks

Stopping short of a full rewrite which would be needed to get rid of
static variables, etc.
3 jobs for !317 with its8770 in 49 minutes and 29 seconds (queued for 53 seconds)
latest detached
Status Job ID Name Coverage
  Build
passed #6322
build-gnutls-mit-standalone-lloadd

00:47:58

passed #6320
build-no-threads-no-slapd

00:03:45

passed #6321
build-openssl-heimdal-lloadd

00:49:28