#ifdef USE_NSS
#include <nspr.h>
+#include <plarenas.h>
#endif
#define ENABLE_CURLX_PRINTF
convert_cleanup();
metalink_cleanup();
#ifdef USE_NSS
- if(PR_Initialized())
+ if(PR_Initialized()) {
+ /* prevent valgrind from reporting still reachable mem from NSRP arenas */
+ PL_ArenaFinish();
/* prevent valgrind from reporting possibly lost memory (fd cache, ...) */
PR_Cleanup();
+ }
#endif
free_config_fields(config);