This makes _gnutls_resolve_priorities() return a string that is always
allocated with the gnutls memory functions.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* priorities, appended with any additional present in
* the priorities string.
*
- * The returned string must be released using free().
+ * The returned string must be released using gnutls_free().
*/
char *_gnutls_resolve_priorities(const char* priorities)
{
if (additional)
n2 = strlen(additional);
- ret = malloc(n+n2+1+1);
+ ret = gnutls_malloc(n+n2+1+1);
if (ret == NULL) {
goto finish;
}
goto error_cleanup;
}
- free(darg);
+ gnutls_free(darg);
return 0;
}
ok:
- free(p);
+ gnutls_free(p);
gnutls_global_deinit();
}
try_prio("@HELLONO:+AES-128-CBC", NULL);
try_prio("@HELLONO,:+AES-128-CBC", NULL);
}
-